diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b471ba38f67f5cf29849ba5724870c004c3e70ff..5da04bbabeb127037b873993824d807aede54c46 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,12 +10,28 @@ before_script: # Defines stages which are to be executed stages: + - syntax - build - test - publish - upgradetest +# +### Stage syntax +# + +test:codestyle: + stage: syntax + image: debian:stretch + allow_failure: false + + script: + - composer require phplint/phplint + - echo "Syntax checking PHP files" + - echo "For more information http://www.icosaedro.it/phplint/" + - vendor/bin/phplint ./ --exclude "vendor" + # ### Stage "build" #