From d8b0b8424f1d3cdc60bd150d94df08b17f4b860d Mon Sep 17 00:00:00 2001 From: Marius Burkard Date: Thu, 25 Oct 2018 15:48:31 +0200 Subject: [PATCH] - added gitlab ci file for php syntax check --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000..7d67a34496 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +# Defines stages which are to be executed +stages: + - syntax + +# +### Stage syntax +# + +syntax:lint: + stage: syntax + allow_failure: false + + script: + - echo "Syntax checking PHP files" + - echo "For more information http://www.icosaedro.it/phplint/" + - shopt -s globstar + - set -e + - for x in **/*.php **/*.lng ; do php -l "$x" ; done + -- GitLab