richdocuments/.travis.yml

49 lines
983 B
YAML
Raw Normal View History

language: php
php:
- 5.4
- 5.5
2014-12-18 15:35:59 +01:00
- 5.6
- hhvm
2015-07-18 22:26:17 +02:00
- 7
2014-10-29 19:27:53 +03:00
env:
global:
- CORE_BRANCH=master
matrix:
- DB=sqlite
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
2014-10-29 19:27:53 +03:00
before_install:
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh documents $CORE_BRANCH $DB
2014-10-29 19:27:53 +03:00
script:
# Test lint
- cd ../core/apps/documents
2014-12-18 15:35:59 +01:00
- find . -name \*.php -exec php -l "{}" \;
2014-10-29 19:27:53 +03:00
# Run phpunit tests
- cd tests
- phpunit --configuration phpunit.xml
2014-10-29 19:27:53 +03:00
# Create coverage report
2014-12-18 15:35:59 +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"
2014-10-29 19:27:53 +03:00
matrix:
include:
- php: 5.4
env: DB=mysql
- php: 5.4
env: DB=pgsql
- php: 5.4
env: DB=oracle
allow_failures:
- php: hhvm
2014-12-18 15:35:59 +01:00
fast_finish: true