1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Simplify build matrix

This commit is contained in:
Fabio B. Silva 2014-03-01 12:32:56 -05:00
parent a522aa0a81
commit a91e05db9e
6 changed files with 11 additions and 31 deletions

View File

@ -1,4 +1,4 @@
# for php-coveralls # for php-coveralls
service_name: travis-ci service_name: travis-ci
src_dir: lib src_dir: lib
coverage_clover: build/logs/clover.xml coverage_clover: build/logs/clover*.xml

View File

@ -7,12 +7,9 @@ php:
- hhvm - hhvm
env: env:
- DB=mysql ENABLE_SECOND_LEVEL_CACHE=1 - DB=mysql
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 - DB=pgsql
- DB=sqlite ENABLE_SECOND_LEVEL_CACHE=1 - DB=sqlite
- DB=mysql ENABLE_SECOND_LEVEL_CACHE=0
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0
- DB=sqlite ENABLE_SECOND_LEVEL_CACHE=0
before_script: before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi" - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
@ -22,7 +19,9 @@ before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; 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"
- composer install --prefer-source --dev - composer install --prefer-source --dev
script: phpunit -v --configuration tests/travis/$DB.travis.xml script:
- ENABLE_SECOND_LEVEL_CACHE=0 ./vendor/bin/phpunit -v -c tests/travis/$DB.travis.xml --coverage-clover ./build/logs/clover.xml
- ENABLE_SECOND_LEVEL_CACHE=1 ./vendor/bin/phpunit -v -c tests/travis/$DB.travis.xml --coverage-clover ./build/logs/clover-slc.xml --exclude-group performance,non-cacheable,locking_functional
after_script: after_script:
- php vendor/bin/coveralls -v - php vendor/bin/coveralls -v
@ -32,11 +31,6 @@ matrix:
- php: hhvm - php: hhvm
exclude: exclude:
- php: hhvm - php: hhvm
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0 # driver currently unsupported by HHVM env: DB=pgsql # driver currently unsupported by HHVM
- php: hhvm - php: hhvm
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 # driver currently unsupported by HHVM env: DB=mysqli # driver currently unsupported by HHVM
- php: hhvm
env: DB=mysqli ENABLE_SECOND_LEVEL_CACHE=0 # driver currently unsupported by HHVM
- php: hhvm
env: DB=mysqli ENABLE_SECOND_LEVEL_CACHE=1 # driver currently unsupported by HHVM

View File

@ -20,7 +20,8 @@
"symfony/console": "2.*" "symfony/console": "2.*"
}, },
"require-dev": { "require-dev": {
"symfony/yaml": "2.1", "symfony/yaml": "~2.1",
"phpunit/phpunit": "~3.7",
"satooshi/php-coveralls": "dev-master" "satooshi/php-coveralls": "dev-master"
}, },
"suggest": { "suggest": {

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>
@ -33,7 +29,6 @@
<groups> <groups>
<exclude> <exclude>
<group>performance</group> <group>performance</group>
<group>non-cacheable</group>
<group>locking_functional</group> <group>locking_functional</group>
</exclude> </exclude>
</groups> </groups>

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>
@ -36,7 +32,6 @@
<groups> <groups>
<exclude> <exclude>
<group>performance</group> <group>performance</group>
<group>non-cacheable</group>
<group>locking_functional</group> <group>locking_functional</group>
</exclude> </exclude>
</groups> </groups>

View File

@ -1,10 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php"> <phpunit bootstrap="../Doctrine/Tests/TestInit.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>
@ -18,7 +14,6 @@
<groups> <groups>
<exclude> <exclude>
<group>performance</group> <group>performance</group>
<group>non-cacheable</group>
<group>locking_functional</group> <group>locking_functional</group>
</exclude> </exclude>
</groups> </groups>