diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-03-16 18:10:28 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-03-16 18:10:28 +0100 |
commit | a110bdb10fd2986cd6d81117f043e29c5575f87e (patch) | |
tree | ae2a396add0a222870acbefa9ec57908093b2abb | |
parent | 7e92ef37e3006f9b1e71ef13284038c22faa1a12 (diff) | |
parent | aee10f0281783d915d7cc5e4c09e9131a3758208 (diff) | |
download | nextcloud-server-a110bdb10fd2986cd6d81117f043e29c5575f87e.tar.gz nextcloud-server-a110bdb10fd2986cd6d81117f043e29c5575f87e.zip |
Merge pull request #23312 from owncloud/check-syntax-travis-stable8.2
[stable8.2] Execute parallel-lint
-rw-r--r-- | .travis.yml | 25 | ||||
-rw-r--r-- | composer.json | 6 |
2 files changed, 31 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000..9c33dc669f1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +sudo: false +language: php +php: + - 5.4 + +branches: + only: + - master + - /^stable\d+(\.\d+)?$/ + +script: + - sh -c "if [ '$TC' = 'syntax' ]; then composer install && vendor/bin/parallel-lint --exclude vendor/jakub-onderka/ --exclude 3rdparty/patchwork/utf8/class/Patchwork/Utf8/Bootup/ .; fi" + +matrix: + include: + - php: 5.4 + env: DB=sqlite;TC=syntax + - php: 5.5 + env: DB=sqlite;TC=syntax + - php: 5.6 + env: DB=sqlite;TC=syntax + - php: 7.0 + env: DB=sqlite;TC=syntax + + fast_finish: true diff --git a/composer.json b/composer.json new file mode 100644 index 00000000000..754925d58a7 --- /dev/null +++ b/composer.json @@ -0,0 +1,6 @@ +{ + "require-dev": { + "jakub-onderka/php-parallel-lint": "^0.9.2", + "jakub-onderka/php-console-highlighter": "^0.3.2" + } +} |