|
|
@ -11,7 +11,6 @@ sudo: false |
|
|
|
|
|
|
|
|
|
|
|
install: |
|
|
|
install: |
|
|
|
- composer self-update |
|
|
|
- composer self-update |
|
|
|
- composer global require fxp/composer-asset-plugin:~1.0 |
|
|
|
|
|
|
|
- composer update --prefer-dist --no-interaction |
|
|
|
- composer update --prefer-dist --no-interaction |
|
|
|
|
|
|
|
|
|
|
|
before_script: |
|
|
|
before_script: |
|
|
@ -20,7 +19,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 = '5.6' ]; then |
|
|
|
if [ $TRAVIS_PHP_VERSION = '7.0' ]; then |
|
|
|
PHPUNIT_FLAGS="--coverage-clover=coverage.clover" |
|
|
|
PHPUNIT_FLAGS="--coverage-clover=coverage.clover" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
@ -29,7 +28,7 @@ script: |
|
|
|
|
|
|
|
|
|
|
|
after_script: |
|
|
|
after_script: |
|
|
|
- | |
|
|
|
- | |
|
|
|
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then |
|
|
|
if [ $TRAVIS_PHP_VERSION = '7.0' ]; 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 |
|
|
|