summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-03-17 10:12:33 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-03-17 10:12:33 +0100
commit954a0a2dd56642ff8b1212601de572193e6e2b4e (patch)
tree049bbf8a1234f6838fa323396525015b3e361152
parentc6eee6155f984f24a632ac5087b4fbba7531dc64 (diff)
parentf465320046041125287d67dfa0c9e1e5304906c4 (diff)
downloadnextcloud-server-954a0a2dd56642ff8b1212601de572193e6e2b4e.tar.gz
nextcloud-server-954a0a2dd56642ff8b1212601de572193e6e2b4e.zip
Merge pull request #23311 from owncloud/check-syntax-travis-stable8.1
[stable8.1] Execute parallel-lint
-rw-r--r--.travis.yml23
-rw-r--r--composer.json6
2 files changed, 29 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000000..73c90beee56
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,23 @@
+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
+
+ 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"
+ }
+}