Skip to content

Commit a963771

Browse files
committed
CI config
1 parent 0915e52 commit a963771

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
WSC CI:
2+
script:
3+
- git ls-files | xargs wc -l
4+
- find . -type f -name '*.php' -not -path "./WCF/*" |xargs -I file php -l file
5+
- git clone --branch=next --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
6+
- phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" . --ignore="/WCF/*" --ignore="/files/lib/system/api/phpqrcode/*"

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: php
2+
sudo: false
3+
php:
4+
- 7.3
5+
before_install:
6+
- pear install pear/PHP_CodeSniffer
7+
- phpenv rehash
8+
before_script:
9+
- git clone --branch=next --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
10+
script:
11+
- find . -type f -name '*.php' -not -path './WCF/*' -print0 |xargs -0 -I file -P 4 php -l file > /dev/null
12+
- phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" . --ignore="/WCF/*" --ignore="/files/lib/system/api/phpqrcode/*"
13+
notifications:
14+
email: false

0 commit comments

Comments
 (0)