1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Merge pull request #1276 from TomasVotruba/travis-coverage-speedup

[2.4] travis: run coverage just once
This commit is contained in:
Marco Pivetta 2015-01-22 15:03:10 +01:00
commit ba04c9801d
4 changed files with 7 additions and 18 deletions

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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>