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

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-31 15:00:39 +0300
committerJoas Schilling <coding@schilljs.com>2016-08-31 16:58:23 +0300
commited85ab9fa1dc82614a6845d0b0baa5802ca5998e (patch)
tree8b2e34c771a8ee8efeea4495559aef0c4efdb581 /.travis.yml
parent076a4f29d7c96babf3f89651563460037654fdf8 (diff)
Remove 5.4 and 5.5 support
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml46
1 files changed, 32 insertions, 14 deletions
diff --git a/.travis.yml b/.travis.yml
index dbc0730..5794e8d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,14 +1,12 @@
language: php
-
php:
- - 5.4
- - 5.5
- 5.6
- 7
env:
global:
- CORE_BRANCH=master
+ - APP_NAME=serverinfo
matrix:
- DB=sqlite
@@ -17,29 +15,49 @@ branches:
- master
- /^stable\d+(\.\d+)?$/
-sudo: true
before_install:
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
- - bash ./before_install.sh serverinfo $CORE_BRANCH $DB
+ - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
-script:
- # Test lint
+ # Add some output debugging information
- cd ../server
- - cd apps/serverinfo
- - find . -name \*.php -exec php -l "{}" \;
+ - ./occ check
+ - ./occ status
+ - ./occ app:list
+ - ./occ app:enable $APP_NAME
+ - ./occ app:list
+
+script:
+ - cd apps/$APP_NAME/
+
+ # Test the app
+ - sh -c "if [ '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi"
+ - cd ../../
+ - sh -c "if [ '$CODECHECK' = '1' ]; then ./occ app:check-code $APP_NAME -c private -c strong-comparison; fi"
+ - sh -c "if [ '$CODECHECK' = '2' ]; then ./occ app:check-code $APP_NAME -c deprecation; fi"
+ - cd apps/$APP_NAME/
# Run phpunit tests
- cd tests
- - phpunit --configuration phpunit.xml
+ - sh -c "if [ '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then phpunit --configuration phpunit.xml; fi"
+ - cd ..
# Create coverage report
- - wget https://scrutinizer-ci.com/ocular.phar
- - php ocular.phar code-coverage:upload --format=php-clover clover.xml
+ - cd tests
+ - sh -c "if [ '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
+ - sh -c "if [ '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
+ - cd ..
matrix:
include:
- - php: 5.4
+ - php: 5.6
env: DB=mysql
- - php: 5.4
+ - php: 5.6
env: DB=pgsql
+ - php: 5.6
+ env: DB=mysql;CODECHECK=1
+ - php: 5.6
+ env: DB=mysql;CODECHECK=2
+ allow_failures:
+ - env: DB=mysql;CODECHECK=2
fast_finish: true