Merge pull request #1276 from TomasVotruba/travis-coverage-speedup
[2.4] travis: run coverage just once
This commit is contained in:
commit
ba04c9801d
13
.travis.yml
13
.travis.yml
@ -12,14 +12,15 @@ env:
|
|||||||
- DB=sqlite
|
- DB=sqlite
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
|
- if [[ $TRAVIS_PHP_VERSION = '5.6' && $DB = 'sqlite' ]]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; else PHPUNIT_FLAGS=""; fi
|
||||||
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests_tmp;' -U postgres; fi"
|
- if [ $DB = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi
|
||||||
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests;' -U postgres; fi"
|
- if [ $DB = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests_tmp;' -U postgres; fi
|
||||||
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests_tmp;' -U postgres; fi"
|
- if [ $DB = 'pgsql' ]; then psql -c 'create database doctrine_tests;' -U postgres; fi
|
||||||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi"
|
- if [ $DB = 'pgsql' ]; then psql -c 'create database doctrine_tests_tmp;' -U postgres; fi
|
||||||
|
- if [ $DB = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi
|
||||||
- composer install --prefer-dist --dev
|
- composer install --prefer-dist --dev
|
||||||
|
|
||||||
script: phpunit --configuration tests/travis/$DB.travis.xml
|
script: phpunit $PHPUNIT_FLAGS --configuration tests/travis/$DB.travis.xml
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- php vendor/bin/coveralls -v
|
- php vendor/bin/coveralls -v
|
||||||
|
@ -16,10 +16,6 @@
|
|||||||
<var name="tmpdb_port" value="3306"/>
|
<var name="tmpdb_port" value="3306"/>
|
||||||
</php>
|
</php>
|
||||||
|
|
||||||
<logging>
|
|
||||||
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
|
|
||||||
</logging>
|
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Doctrine ORM Test Suite">
|
<testsuite name="Doctrine ORM Test Suite">
|
||||||
<directory>./../Doctrine/Tests/ORM</directory>
|
<directory>./../Doctrine/Tests/ORM</directory>
|
||||||
|
@ -19,10 +19,6 @@
|
|||||||
<var name="tmpdb_port" value="5432"/>
|
<var name="tmpdb_port" value="5432"/>
|
||||||
</php>
|
</php>
|
||||||
|
|
||||||
<logging>
|
|
||||||
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
|
|
||||||
</logging>
|
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Doctrine ORM Test Suite">
|
<testsuite name="Doctrine ORM Test Suite">
|
||||||
<directory>./../Doctrine/Tests/ORM</directory>
|
<directory>./../Doctrine/Tests/ORM</directory>
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<phpunit>
|
<phpunit>
|
||||||
|
|
||||||
<logging>
|
|
||||||
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
|
|
||||||
</logging>
|
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Doctrine ORM Test Suite">
|
<testsuite name="Doctrine ORM Test Suite">
|
||||||
<directory>./../Doctrine/Tests/ORM</directory>
|
<directory>./../Doctrine/Tests/ORM</directory>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user