|
|
@ -5,6 +5,8 @@ php: |
|
|
|
- 5.5 |
|
|
|
- 5.5 |
|
|
|
- 5.6 |
|
|
|
- 5.6 |
|
|
|
- 7.0 |
|
|
|
- 7.0 |
|
|
|
|
|
|
|
- 7.1 |
|
|
|
|
|
|
|
- 7.2 |
|
|
|
- hhvm |
|
|
|
- hhvm |
|
|
|
|
|
|
|
|
|
|
|
sudo: false |
|
|
|
sudo: false |
|
|
@ -19,7 +21,7 @@ before_script: |
|
|
|
- mysql -e 'create database test;' |
|
|
|
- mysql -e 'create database test;' |
|
|
|
- psql -U postgres -c 'CREATE DATABASE test;'; |
|
|
|
- psql -U postgres -c 'CREATE DATABASE test;'; |
|
|
|
- | |
|
|
|
- | |
|
|
|
if [ $TRAVIS_PHP_VERSION = '7.0' ]; then |
|
|
|
if [ $TRAVIS_PHP_VERSION = '7.1' ]; then |
|
|
|
PHPUNIT_FLAGS="--coverage-clover=coverage.clover" |
|
|
|
PHPUNIT_FLAGS="--coverage-clover=coverage.clover" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
@ -28,7 +30,7 @@ script: |
|
|
|
|
|
|
|
|
|
|
|
after_script: |
|
|
|
after_script: |
|
|
|
- | |
|
|
|
- | |
|
|
|
if [ $TRAVIS_PHP_VERSION = '7.0' ]; then |
|
|
|
if [ $TRAVIS_PHP_VERSION = '7.1' ]; then |
|
|
|
wget https://scrutinizer-ci.com/ocular.phar |
|
|
|
wget https://scrutinizer-ci.com/ocular.phar |
|
|
|
php ocular.phar code-coverage:upload --format=php-clover coverage.clover |
|
|
|
php ocular.phar code-coverage:upload --format=php-clover coverage.clover |
|
|
|
fi |
|
|
|
fi |
|
|
|