Commit 09fa5a58 authored by Jonathan Swaelens's avatar Jonathan Swaelens
Browse files

:sparkles: feat(gitlab-ci) Add php lint to gitlab-ci.yml


Add php lint check to gitlab-ci.
The check php lint not check 'example_badcode.php' because the code must be bad for example

Closes #5692

Signed-off-by: default avatarJonathan Swaelens <swaelens.jonathan@opensides.be>
Showing with 8 additions and 2 deletions
+8 -2
......@@ -6,12 +6,18 @@ variables:
GIT_SSL_NO_VERIFY: "true"
# Execute before every job
# Install php-codesniffer
# Install php-codesniffer, git and php
before_script:
- apt-get update -qq
- apt-get install -y -qq php-codesniffer git
- apt-get install -y -qq php-codesniffer git php
# PHP codesniffer
create_php_code_sniffer_rapport:
script:
- phpcs --standard=developers/FDStandard/ruleset.xml .
# PHP lint
create_php_list_rapport:
script:
- find . -type f -name '*.php' ! -name 'example_badcode.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