Skip to content

Commit d8b0b84

Browse files
author
Marius Burkard
committed
- added gitlab ci file for php syntax check
1 parent c3be1c3 commit d8b0b84

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.gitlab-ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Defines stages which are to be executed
2+
stages:
3+
- syntax
4+
5+
#
6+
### Stage syntax
7+
#
8+
9+
syntax:lint:
10+
stage: syntax
11+
allow_failure: false
12+
13+
script:
14+
- echo "Syntax checking PHP files"
15+
- echo "For more information http://www.icosaedro.it/phplint/"
16+
- shopt -s globstar
17+
- set -e
18+
- for x in **/*.php **/*.lng ; do php -l "$x" ; done
19+

0 commit comments

Comments
 (0)