From aee10f0281783d915d7cc5e4c09e9131a3758208 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 16 Mar 2016 14:57:10 +0100 Subject: [stable8.2] Execute parallel-lint Backport of https://github.com/owncloud/core/pull/22994 and https://github.com/owncloud/core/pull/23303 --- .travis.yml | 25 +++++++++++++++++++++++++ composer.json | 6 ++++++ 2 files changed, 31 insertions(+) create mode 100644 .travis.yml create mode 100644 composer.json 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" + } +} -- cgit v1.2.3