Commit c96470f6 authored by benoit manager's avatar benoit manager

Merge branch...

Merge branch '5781-il-nous-faut-jessie-et-stretch-pour-le-lint-php-dans-la-ci-de-fusiondirectory' into '1.3-dev'

Resolve "Il nous faut jessie et stretch pour le lint php dans la ci  de fusiondirectory"

Closes #5781

See merge request fusiondirectory/fd!150
parents 3031ef5e fb4bfcd6
......@@ -6,28 +6,16 @@ variables:
GIT_SSL_NO_VERIFY: "true"
stages:
- test-perl
- test-php
- test-manpages
- lint
- codestyle
- 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
......@@ -38,26 +26,45 @@ create_perl_lint_rapport:
script:
- perl -cW contrib/bin/fusiondirectory-setup contrib/bin/fusiondirectory-insert-schema
# generate man pages to test validity
test_manpages:
stage: test-manpages
# PHP lint (jessie)
create_php_lint_rapport_jessie:
image: php:5.6.33-cli-jessie
stage: lint
only:
- branches
- tags
script:
- find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l
# PHP lint (stretch)
create_php_lint_rapport_stretch:
image: php:cli-stretch
stage: lint
only:
- branches
- tags
script:
- find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l
## Stage codestyle
# Generate perlcritic rapport
create_perlcritic_rapport:
stage: codestyle
only:
- branches
- tags
before_script:
- apt-get update -qq
- apt-get install -y -qq perl man-db
- apt-get install -y -qq libperl-critic-perl
script:
- pod2man -c "FusionDirectory Documentation" -r "FusionDirectory 1.3" contrib/bin/fusiondirectory-insert-schema contrib/man/fusiondirectory-insert-schema.1
- pod2man -c "FusionDirectory Documentation" -r "FusionDirectory 1.3" contrib/bin/fusiondirectory-setup contrib/man/fusiondirectory-setup.1
- pod2man -c "FusionDirectory Documentation" -r "FusionDirectory 1.3" contrib/man/fusiondirectory.conf.pod contrib/man/fusiondirectory.conf.5
- lexgrog contrib/man/fusiondirectory-insert-schema.1
- lexgrog contrib/man/fusiondirectory-setup.1
- lexgrog contrib/man/fusiondirectory.conf.5
- 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
stage: codestyle
only:
- branches
- tags
......@@ -69,17 +76,22 @@ create_php_code_sniffer_rapport:
- find . -type f -name '*.php' -o -name '*.inc' > ./filelist
- phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml --file-list=./filelist
# PHP lint
create_php_lint_rapport:
stage: test-php
# generate man pages to test validity
test_manpages:
stage: manpages
only:
- branches
- tags
before_script:
- apt-get update -qq
- apt-get install -y -qq php-cli
- apt-get update -qq
- apt-get install -y -qq perl man-db
script:
- find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l
- pod2man -c "FusionDirectory Documentation" -r "FusionDirectory 1.3" contrib/bin/fusiondirectory-insert-schema contrib/man/fusiondirectory-insert-schema.1
- pod2man -c "FusionDirectory Documentation" -r "FusionDirectory 1.3" contrib/bin/fusiondirectory-setup contrib/man/fusiondirectory-setup.1
- pod2man -c "FusionDirectory Documentation" -r "FusionDirectory 1.3" contrib/man/fusiondirectory.conf.pod contrib/man/fusiondirectory.conf.5
- lexgrog contrib/man/fusiondirectory-insert-schema.1
- lexgrog contrib/man/fusiondirectory-setup.1
- lexgrog contrib/man/fusiondirectory.conf.5
# fusiondirectory-update-locale
fusiondirectory-update-locale:
......
Markdown is supported
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