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
2017-07-25 02:45:50 +02:00
- 7.2
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 :
2017-07-25 02:45:50 +02:00
- DB=sqlite
2014-03-01 12:32:56 -05:00
- DB=mysql
- DB=pgsql
2011-11-13 17:44:37 +01:00
2017-07-25 02:45:50 +02:00
before_install :
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
2015-01-20 03:31:42 +02:00
- composer self-update
2011-11-13 17:44:37 +01:00
2017-07-25 02:45:50 +02:00
install : travis_retry composer update --prefer-dist
2013-06-27 20:18:21 -04:00
2017-07-25 02:45:50 +02:00
script :
- if [[ "$DB" == "mysql" || "$DB" == "mariadb" ]]; then mysql -e "CREATE SCHEMA doctrine_tests; GRANT ALL PRIVILEGES ON doctrine_tests.* to travis@'%'"; fi
- ENABLE_SECOND_LEVEL_CACHE=0 ./vendor/bin/phpunit -v -c tests/travis/$DB.travis.xml
- ENABLE_SECOND_LEVEL_CACHE=1 ./vendor/bin/phpunit -v -c tests/travis/$DB.travis.xml --exclude-group performance,non-cacheable,locking_functional
2013-12-13 22:13:28 +01:00
2017-07-25 02:45:50 +02:00
jobs :
2015-07-23 12:51:21 +09:00
include :
2017-07-25 02:45:50 +02:00
- stage : Test
2016-09-10 12:15:25 -06:00
env : DB=mariadb
addons :
mariadb : 10.1
2017-07-23 10:11:43 +02:00
2017-07-25 02:45:50 +02:00
- stage : Test
env : DB=mysql MYSQL_VERSION=5.7
php : 7.1
before_script :
- ./tests/travis/install-mysql-$MYSQL_VERSION.sh
sudo : required
2016-09-09 15:35:33 -06:00
2017-07-25 02:45:50 +02:00
- stage : Test
2017-07-01 14:22:40 +02:00
env : DB=mysql MYSQL_VERSION=5.7
2017-07-25 02:45:50 +02:00
php : 7.2
before_script :
- ./tests/travis/install-mysql-$MYSQL_VERSION.sh
2017-07-01 14:22:40 +02:00
sudo : required
2017-07-25 02:45:50 +02:00
- stage : Test
2017-07-01 14:22:40 +02:00
env : DB=mysql MYSQL_VERSION=5.7
2017-07-25 02:45:50 +02:00
php : nightly
before_script :
- ./tests/travis/install-mysql-$MYSQL_VERSION.sh
2017-07-01 14:22:40 +02:00
sudo : required
2017-07-25 02:45:50 +02:00
- stage : Test
env : DB=sqlite DEPENDENCIES=low
install : travis_retry composer update --prefer-dist --prefer-lowest
2017-12-17 00:54:12 +01:00
- stage : Test
2017-12-17 20:38:36 +01:00
if : type = cron
2017-12-18 00:14:00 +01:00
env : DB=sqlite DEV_DEPENDENCIES
2017-12-13 20:41:19 +01:00
install :
2017-12-17 20:38:36 +01:00
- composer config minimum-stability dev
2017-12-13 20:41:19 +01:00
- travis_retry composer update --prefer-dist
2017-12-17 00:54:12 +01:00
2017-12-16 23:43:25 +01:00
- stage : Test
env : DB=sqlite COVERAGE
2017-07-25 02:45:50 +02:00
before_script :
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
- if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi
script :
- ENABLE_SECOND_LEVEL_CACHE=0 ./vendor/bin/phpunit -v -c tests/travis/$DB.travis.xml --coverage-clover ./build/logs/clover.xml
after_script :
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
2017-12-16 23:43:25 +01:00
- stage : Code Quality
env : DB=none STATIC_ANALYSIS
2017-12-17 00:55:50 +01:00
install : travis_retry composer update --prefer-dist --prefer-stable
2017-12-16 23:43:25 +01:00
before_script :
- echo "extension=redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
2017-12-17 00:55:50 +01:00
- travis_retry composer require --dev --prefer-dist --prefer-stable phpstan/phpstan:^0.9
2017-12-16 23:43:25 +01:00
script : vendor/bin/phpstan analyse -l 1 -c phpstan.neon lib
- stage : Code Quality
env : DB=none BENCHMARK
2017-07-25 02:45:50 +02:00
before_script : wget https://phpbench.github.io/phpbench/phpbench.phar https://phpbench.github.io/phpbench/phpbench.phar.pubkey
script : php phpbench.phar run -l dots --report=default
2017-07-23 10:11:43 +02:00
2017-12-16 23:43:25 +01:00
- stage : Code Quality
env : DB=none CODING_STANDARDS
2017-11-23 11:26:33 +01:00
php : nightly
script :
- ./vendor/bin/phpcs
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