bookmarks/.travis.yml

85 lines
2.9 KiB
YAML
Raw Normal View History

2014-08-19 08:18:07 +00:00
language: php
php:
2014-12-07 11:40:43 +00:00
- 5.6
2015-07-18 20:24:32 +00:00
- 7
- 7.1
- 7.2
2014-08-19 08:18:07 +00:00
env:
global:
2014-12-15 10:58:24 +00:00
- APP_NAME=bookmarks
2016-12-07 21:55:29 +00:00
- PHP_COVERAGE=FALSE
2014-08-19 08:18:07 +00:00
matrix:
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable12
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable13
2016-12-07 21:55:29 +00:00
- DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master PHP_COVERAGE=TRUE
- DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable12
- DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable13
- DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable12
- DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable13
matrix:
exclude:
- php: 5.6
2016-12-07 21:55:29 +00:00
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master PHP_COVERAGE=TRUE
2017-05-25 12:10:31 +00:00
- php: 5.6
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable12
- php: 5.6
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- php: 5.6
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- php: 5.6
env: DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- php: 5.6
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable12
- php: 7
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master PHP_COVERAGE=TRUE
2017-05-25 12:10:31 +00:00
- php: 7
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable12
- php: 7
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- php: 7
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable12
- php: 7.2
env: DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable12
- php: 7.2
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable12
- php: 7.2
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable12
fast_finish: true
2014-08-19 08:18:07 +00:00
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
2014-08-19 08:18:07 +00:00
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libxml2-utils
2018-02-21 16:20:59 +00:00
- composer install
- wget https://raw.githubusercontent.com/$SERVER/before_install.sh
- . ./before_install.sh "$APP_NAME" "$SERVER_BRANCH" "$DB"
- cd ../core || cd ../server
2014-12-15 10:58:24 +00:00
- php occ app:enable $APP_NAME
2014-08-19 08:18:07 +00:00
script:
# Test lint
2014-12-15 10:58:24 +00:00
- cd apps/$APP_NAME
- find . -name \*.php -exec php -l "{}" \;
2017-02-09 22:30:00 +00:00
# Check info.xml schema validity
- wget https://apps.nextcloud.com/schema/apps/info.xsd
- xmllint appinfo/info.xml --schema info.xsd --noout
- rm info.xsd
2014-08-19 08:18:07 +00:00
# Run phpunit tests
- cd tests
- phpunit --configuration phpunit.xml
# Create coverage report
2016-12-07 21:55:29 +00:00
- sh -c "if [ '$PHP_COVERAGE' != 'FALSE' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$PHP_COVERAGE' != 'FALSE' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"