Skip to content

Commit

Permalink
Simplify build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioBatSilva committed Mar 1, 2014
1 parent a522aa0 commit a91e05d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .coveralls.yml
@@ -1,4 +1,4 @@
# for php-coveralls
service_name: travis-ci
src_dir: lib
coverage_clover: build/logs/clover.xml
coverage_clover: build/logs/clover*.xml
22 changes: 8 additions & 14 deletions .travis.yml
Expand Up @@ -7,12 +7,9 @@ php:
- hhvm

env:
- DB=mysql ENABLE_SECOND_LEVEL_CACHE=1
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1
- DB=sqlite ENABLE_SECOND_LEVEL_CACHE=1
- DB=mysql ENABLE_SECOND_LEVEL_CACHE=0
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0
- DB=sqlite ENABLE_SECOND_LEVEL_CACHE=0
- DB=mysql
- DB=pgsql
- DB=sqlite

before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
Expand All @@ -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"
- 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:
- php vendor/bin/coveralls -v
Expand All @@ -32,11 +31,6 @@ matrix:
- php: hhvm
exclude:
- 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
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 # 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

env: DB=mysqli # driver currently unsupported by HHVM
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -20,7 +20,8 @@
"symfony/console": "2.*"
},
"require-dev": {
"symfony/yaml": "2.1",
"symfony/yaml": "~2.1",
"phpunit/phpunit": "~3.7",
"satooshi/php-coveralls": "dev-master"
},
"suggest": {
Expand Down
5 changes: 0 additions & 5 deletions tests/travis/mysql.travis.xml
Expand Up @@ -16,10 +16,6 @@
<var name="tmpdb_port" value="3306"/>
</php>

<logging>
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
</logging>

<testsuites>
<testsuite name="Doctrine ORM Test Suite">
<directory>./../Doctrine/Tests/ORM</directory>
Expand All @@ -33,7 +29,6 @@
<groups>
<exclude>
<group>performance</group>
<group>non-cacheable</group>
<group>locking_functional</group>
</exclude>
</groups>
Expand Down
5 changes: 0 additions & 5 deletions tests/travis/pgsql.travis.xml
Expand Up @@ -19,10 +19,6 @@
<var name="tmpdb_port" value="5432"/>
</php>

<logging>
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
</logging>

<testsuites>
<testsuite name="Doctrine ORM Test Suite">
<directory>./../Doctrine/Tests/ORM</directory>
Expand All @@ -36,7 +32,6 @@
<groups>
<exclude>
<group>performance</group>
<group>non-cacheable</group>
<group>locking_functional</group>
</exclude>
</groups>
Expand Down
5 changes: 0 additions & 5 deletions tests/travis/sqlite.travis.xml
@@ -1,10 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php">

<logging>
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
</logging>

<testsuites>
<testsuite name="Doctrine ORM Test Suite">
<directory>./../Doctrine/Tests/ORM</directory>
Expand All @@ -18,7 +14,6 @@
<groups>
<exclude>
<group>performance</group>
<group>non-cacheable</group>
<group>locking_functional</group>
</exclude>
</groups>
Expand Down

0 comments on commit a91e05d

Please sign in to comment.