Commit 568d77cc authored by Jonathan Swaelens's avatar Jonathan Swaelens
Browse files

:sparkles: feat(gitlab-ci): Sort the stages for gitlab-ci


Sort the stages for gitlab-ci

Signed-off-by: default avatarJonathan Swaelens <swaelens.jonathan@opensides.be>
Showing with 25 additions and 22 deletions
+25 -22
......@@ -6,29 +6,16 @@ variables:
GIT_SSL_NO_VERIFY: "true"
stages:
- test-perl
- test-php-lint
- test-php-codesniffer
- test-manpages
- lint
- codestyling
- manpages
- transifex
# Generate perlcritic rapport
create_perlcritic_rapport:
stage: test-perl
only:
- branches
- tags
before_script:
- apt-get update -qq
- apt-get install -y -qq libperl-critic-perl
script:
- cp contrib/bin/fusiondirectory-setup contrib/bin/fusiondirectory-setup.pl
- cp contrib/bin/fusiondirectory-insert-schema contrib/bin/fusiondirectory-insert-schema.pl
- perlcritic --quiet --verbose "%f~|~%s~|~%l~|~%c~|~%m~|~%e~|~%p~||~%n" contrib/bin
## Stage lint
# Perl lint
create_perl_lint_rapport:
stage: test-perl
stage: lint
only:
- branches
- tags
......@@ -42,7 +29,7 @@ create_perl_lint_rapport:
# PHP lint (jessie)
create_php_lint_rapport_jessie:
image: php:5.6.33-cli-jessie
stage: test-php-lint
stage: lint
only:
- branches
- tags
......@@ -52,16 +39,32 @@ create_php_lint_rapport_jessie:
# PHP lint (stretch)
create_php_lint_rapport_stretch:
image: php:cli-stretch
stage: test-php-lint
stage: lint
only:
- branches
- tags
script:
- find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l
## Stage codestyling
# Generate perlcritic rapport
create_perlcritic_rapport:
stage: codestyling
only:
- branches
- tags
before_script:
- apt-get update -qq
- apt-get install -y -qq libperl-critic-perl
script:
- cp contrib/bin/fusiondirectory-setup contrib/bin/fusiondirectory-setup.pl
- cp contrib/bin/fusiondirectory-insert-schema contrib/bin/fusiondirectory-insert-schema.pl
- perlcritic --quiet --verbose "%f~|~%s~|~%l~|~%c~|~%m~|~%e~|~%p~||~%n" contrib/bin
# PHP codesniffer
create_php_code_sniffer_rapport:
stage: test-php-codesniffer
stage: codestyling
only:
- branches
- tags
......@@ -75,7 +78,7 @@ create_php_code_sniffer_rapport:
# generate man pages to test validity
test_manpages:
stage: test-manpages
stage: manpages
only:
- branches
- tags
......
  • bmortier @bmortier

    mentioned in commit bf67da90

    By manager on 2018-02-28T21:58:03 (imported from GitLab)

    ·

    mentioned in commit bf67da90

    By manager on 2018-02-28T21:58:03 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in merge request !151

    By bmortier on 2018-02-28T21:58:12 (imported from GitLab)

    ·

    mentioned in merge request !151

    By bmortier on 2018-02-28T21:58:12 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in commit a2b05152

    By manager on 2018-04-05T20:01:54 (imported from GitLab)

    ·

    mentioned in commit a2b05152

    By manager on 2018-04-05T20:01:54 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in merge request !212

    By bmortier on 2018-04-05T20:01:55 (imported from GitLab)

    ·

    mentioned in merge request !212

    By bmortier on 2018-04-05T20:01:55 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment