From 568d77ccb5102e58e95403e974477a2aa29050f2 Mon Sep 17 00:00:00 2001 From: Jonathan Swaelens <swaelens.jonathan@opensides.be> Date: Wed, 28 Feb 2018 16:25:31 +0100 Subject: [PATCH] :sparkles: feat(gitlab-ci): Sort the stages for gitlab-ci Sort the stages for gitlab-ci Signed-off-by: Jonathan Swaelens <swaelens.jonathan@opensides.be> --- .gitlab-ci.yml | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 58325d920..c08fdf8bd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -- GitLab