Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-11-07 18:54:32 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-11-08 12:01:29 +0300
commit0190eb5ac94f1e1ef42787acd0f5b9927b320827 (patch)
tree42f5e77f9f34cd64be05918b24f4b13be82fda41 /.travis.yml
parentc0056feb3c9ad244fc409f16c266f1a3fd0e4e7d (diff)
Clean up travis structure
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml42
1 files changed, 18 insertions, 24 deletions
diff --git a/.travis.yml b/.travis.yml
index 807ba0ed..7e6dbe50 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,41 +1,34 @@
sudo: true
language: php
php:
- - 5.6
- 7
- 7.1
- 7.2
env:
global:
- - CORE_BRANCH=master
- - APP_NAME=richdocuments
+ - "CORE_BRANCH=master"
+ - "APP_NAME=richdocuments"
matrix:
- - DB=mysql;CODECHECK=1
- - DB=mysql;CODECHECK=2
- - DB=mysql;CODECHECK=3
+ - "DB=mysql TEST=lint"
+ - "DB=mysql TEST=checker"
+ - "DB=mysql TEST=phpunit"
matrix:
- exclude:
- - php: 5.6 # Not compatible
- env: DB=mysql;CODECHECK=1
- - php: 5.6 # Not compatible
- env: DB=mysql;CODECHECK=3
include:
- php: 5.6
- env: DB=sqlite;CORE_BRANCH=stable12
+ env: "DB=sqlite CORE_BRANCH=stable13 TEST=lint"
- php: 7.0
- env: DB=sqlite;CORE_BRANCH=stable13
+ env: "DB=sqlite CORE_BRANCH=stable13"
- php: 7.2
- env: DB=mysql
+ env: "DB=sqlite CORE_BRANCH=stable14"
- php: 7.2
- env: DB=pgsql
+ env: "DB=sqlite"
- php: 7.2
- env: DB=mysql;JSTESTS=1
+ env: "DB=pgsql"
allow_failures:
- - env: DB=mysql;CODECHECK=2
+ - env: "DB=mysql TEST=checker"
fast_finish: true
-
branches:
only:
- master
@@ -55,15 +48,16 @@ script:
- cd apps/$APP_NAME/
# Test the app
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi"
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then ../../occ app:check-code $APP_NAME -c deprecation; fi"
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '2' ]; then ../../occ app:check-code $APP_NAME -c private -c strong-comparison; fi"
+ - if [ "$TEST" == 'lint' ]; then find . -name \*.php -exec php -l "{}" \;; fi
+ - if [ "$TEST" == 'lint' ]; then ../../occ app:check-code $APP_NAME -c deprecation; fi
+ - if [ "$TEST" == 'checker' ]; then ../../occ app:check-code $APP_NAME -c private -c strong-comparison; fi
# Run phpunit tests
- cd tests/
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '3' ]; then phpunit --configuration phpunit.xml; fi"
+ - if [ "$TEST" == 'phpunit' ]; then phpunit --configuration phpunit.xml; fi
+after_script:
# Create coverage report
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
+ - if [ "$TEST" == 'phpunit' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
+ - if [ "$TEST" == 'phpunit' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi
- cd ../