Commit b99f6529 authored by jswaelens's avatar jswaelens
Browse files

Merge branch '5691-add-the-php-lint-to-the-pipeline' into '1.3-dev'

Resolve "add the php lint to the pipeline"

Closes #5691

See merge request !13
Showing with 7 additions and 2 deletions
+7 -2
...@@ -6,10 +6,10 @@ variables: ...@@ -6,10 +6,10 @@ variables:
GIT_SSL_NO_VERIFY: "true" GIT_SSL_NO_VERIFY: "true"
# Execute before every job # Execute before every job
# Install libperl-critic-perl, php-codesniffer and git # Install libperl-critic-perl, php-codesniffer, git and php
before_script: before_script:
- apt-get update -qq - apt-get update -qq
- apt-get install -y -qq libperl-critic-perl php-codesniffer git - apt-get install -y -qq libperl-critic-perl php-codesniffer git php
# Generate perlcritic rapport # Generate perlcritic rapport
create_perlcritic_rapport: create_perlcritic_rapport:
...@@ -23,3 +23,8 @@ create_php_code_sniffer_rapport: ...@@ -23,3 +23,8 @@ create_php_code_sniffer_rapport:
script: script:
- git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools - git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml . - phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml .
# PHP lint
create_php_list_rapport:
script:
- find . -type f -name '*.php' -exec php -l "{}" \;
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