1
0
mirror of synced 2025-02-02 21:41:45 +03:00
doctrine2/.travis.yml

49 lines
1.5 KiB
YAML
Raw Normal View History

dist: trusty
sudo: false
language: php
php:
- 7.1
- nightly
env:
2014-03-01 12:32:56 -05:00
- DB=mysql
- DB=pgsql
- DB=sqlite
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
- if [[ "$PHPUNIT_FLAGS" == "" ]]; then phpenv config-rm xdebug.ini; fi
- composer self-update
2015-07-08 14:31:43 +02:00
- composer install --prefer-source
- if [ "$DEPENDENCIES" != "low" ]; then composer update; fi;
- if [ "$DEPENDENCIES" == "low" ]; then composer update --prefer-lowest; fi;
- if [[ $DB == "mysql" || $DB == "mariadb" ]]; then mysql -e "CREATE SCHEMA doctrine_tests; GRANT ALL PRIVILEGES ON doctrine_tests.* to travis@'%'"; fi;
script:
- 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:
fast_finish: true
include:
- php: 7.1
env: DB=mariadb
addons:
mariadb: 10.1
- php: 7.1
env:
- DB=sqlite
- DEPENDENCIES='low'
allow_failures:
- php: nightly
2015-11-09 03:40:18 +00:00
cache:
directories:
- $HOME/.composer/cache