2017-06-22 07:55:44 +02:00
|
|
|
dist: trusty
|
2016-09-09 17:21:03 -06:00
|
|
|
sudo: false
|
2011-11-13 17:44:37 +01:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
2016-09-09 15:35:33 -06:00
|
|
|
- 7.1
|
2016-06-19 08:41:00 +02:00
|
|
|
- nightly
|
2013-02-09 22:44:14 +01:00
|
|
|
|
2011-11-13 17:44:37 +01:00
|
|
|
env:
|
2014-03-01 12:32:56 -05:00
|
|
|
- DB=mysql
|
|
|
|
- DB=pgsql
|
|
|
|
- DB=sqlite
|
2011-11-13 17:44:37 +01:00
|
|
|
|
|
|
|
before_script:
|
2017-06-19 11:17:25 +02:00
|
|
|
- if [[ $TRAVIS_PHP_VERSION = '7.1' && $DB = 'sqlite' && "$DEPENDENCIES" != "low" ]]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; else PHPUNIT_FLAGS=""; fi
|
2017-05-31 11:25:10 +02:00
|
|
|
- if [[ "$PHPUNIT_FLAGS" == "" ]]; then phpenv config-rm xdebug.ini; fi
|
2015-01-20 03:31:42 +02:00
|
|
|
- composer self-update
|
2015-07-08 14:31:43 +02:00
|
|
|
- composer install --prefer-source
|
2017-03-31 00:49:17 +01:00
|
|
|
- if [ "$DEPENDENCIES" != "low" ]; then composer update; fi;
|
|
|
|
- if [ "$DEPENDENCIES" == "low" ]; then composer update --prefer-lowest; fi;
|
2011-11-13 17:44:37 +01:00
|
|
|
|
2015-01-27 09:44:06 +01:00
|
|
|
script:
|
2015-01-14 23:08:15 +01:00
|
|
|
- ENABLE_SECOND_LEVEL_CACHE=0 ./vendor/bin/phpunit -v -c tests/travis/$DB.travis.xml $PHPUNIT_FLAGS
|
|
|
|
- ENABLE_SECOND_LEVEL_CACHE=1 ./vendor/bin/phpunit -v -c tests/travis/$DB.travis.xml --exclude-group performance,non-cacheable,locking_functional
|
2013-06-27 20:18:21 -04:00
|
|
|
|
|
|
|
after_script:
|
2017-06-19 11:17:25 +02:00
|
|
|
- if [[ "$PHPUNIT_FLAGS" != "" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
|
|
|
|
- if [[ "$PHPUNIT_FLAGS" != "" ]]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
|
2013-12-13 22:13:28 +01:00
|
|
|
|
|
|
|
matrix:
|
2016-09-09 15:51:34 -06:00
|
|
|
fast_finish: true
|
2015-07-23 12:51:21 +09:00
|
|
|
include:
|
2016-09-10 12:15:25 -06:00
|
|
|
- php: 7.1
|
|
|
|
env: DB=mariadb
|
|
|
|
addons:
|
|
|
|
mariadb: 10.1
|
2017-03-31 00:49:17 +01:00
|
|
|
- php: 7.1
|
|
|
|
env:
|
|
|
|
- DB=sqlite
|
|
|
|
- DEPENDENCIES='low'
|
2016-09-09 15:35:33 -06:00
|
|
|
|
2016-06-19 08:41:00 +02:00
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
2015-11-09 03:40:18 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
2016-01-26 22:28:56 +01:00
|
|
|
- $HOME/.composer/cache
|