summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerman van Rink2017-10-13 12:53:43 (GMT)
committerHerman van Rink2017-10-13 14:21:16 (GMT)
commitac3ed3478b2e308772a5d84a931bd01527116d83 (patch)
tree0328e3ea20fa1b5e409a1db9cce4b9df488c4580
parent10b1dab6e039234cae0a42779a5572ba7997430a (diff)
Add syntax checking stage
-rw-r--r--.gitlab-ci.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b471ba3..5da04bb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,7 @@ before_script:
# Defines stages which are to be executed
stages:
+ - syntax
- build
- test
- publish
@@ -17,6 +18,21 @@ stages:
#
+### 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"
#