Skip to content

Commit d641385

Browse files
committed
Add php syntax check via GitLab CI
1 parent ab6cf3f commit d641385

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
2-
/nbproject/private/
2+
/nbproject/private/
3+
.phplint-cache

.gitlab-ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
image: bobey/docker-gitlab-ci-runner-php7
12+
allow_failure: false
13+
14+
script:
15+
- composer require overtrue/phplint
16+
- echo "Syntax checking PHP files"
17+
- echo "For more information http://www.icosaedro.it/phplint/"
18+
- vendor/bin/phplint

.phplint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
path: ./
2+
jobs: 10
3+
cache: .phplint-cache
4+
extensions:
5+
- php
6+
- lng
7+
exclude:
8+
- vendor
9+

0 commit comments

Comments
 (0)