2014-08-19 10:18:07 +02:00
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- 5.5
|
2014-12-07 12:40:43 +01:00
|
|
|
- 5.6
|
2015-07-18 22:24:32 +02:00
|
|
|
- 7
|
2014-08-19 10:18:07 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2014-12-15 11:58:24 +01:00
|
|
|
- APP_NAME=bookmarks
|
2014-08-19 10:18:07 +02:00
|
|
|
matrix:
|
2016-05-22 21:25:09 +02:00
|
|
|
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
|
|
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
2016-09-08 19:43:31 +02:00
|
|
|
- DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
|
|
- DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
|
|
|
- DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
|
|
- DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
2016-05-22 21:25:09 +02:00
|
|
|
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable9
|
2016-09-08 19:43:31 +02:00
|
|
|
- DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=master
|
|
|
|
- DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=stable9.1
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- php: 5.5
|
|
|
|
env: DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
|
|
- php: 5.5
|
|
|
|
env: DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
|
|
|
- php: 5.5
|
|
|
|
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
|
|
- php: 5.5
|
|
|
|
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
|
|
|
- php: 5.5
|
|
|
|
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
|
|
- php: 5.5
|
|
|
|
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
|
|
|
- php: 5.5
|
|
|
|
env: DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=master
|
|
|
|
- php: 5.5
|
|
|
|
env: DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=stable9.1
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=master
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=stable9.1
|
|
|
|
fast_finish: true
|
2014-08-19 10:18:07 +02:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2015-05-11 15:24:11 +02:00
|
|
|
- /^stable\d+(\.\d+)?$/
|
2014-08-19 10:18:07 +02:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
# - composer install
|
2016-05-22 21:25:09 +02:00
|
|
|
- wget https://raw.githubusercontent.com/$SERVER/before_install.sh
|
2016-09-08 19:43:31 +02:00
|
|
|
- bash ./before_install.sh "$APP_NAME" "$SERVER_BRANCH" "$DB"
|
2016-05-22 21:25:09 +02:00
|
|
|
- cd ../core || cd ../server
|
2014-12-15 11:58:24 +01:00
|
|
|
- php occ app:enable $APP_NAME
|
2014-08-19 10:18:07 +02:00
|
|
|
|
|
|
|
script:
|
|
|
|
# Test lint
|
2014-12-15 11:58:24 +01:00
|
|
|
- cd apps/$APP_NAME
|
|
|
|
- find . -name \*.php -exec php -l "{}" \;
|
2014-08-19 10:18:07 +02:00
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd tests
|
|
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
|
|
|
|
# Create coverage report
|
2014-12-15 11:58:24 +01:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
|
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
|