Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a91e05d

Browse files
committed
Simplify build matrix
1 parent a522aa0 commit a91e05d

6 files changed

Lines changed: 11 additions & 31 deletions

File tree

.coveralls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# for php-coveralls
22
service_name: travis-ci
33
src_dir: lib
4-
coverage_clover: build/logs/clover.xml
4+
coverage_clover: build/logs/clover*.xml

.travis.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ php:
77
- hhvm
88

99
env:
10-
- DB=mysql ENABLE_SECOND_LEVEL_CACHE=1
11-
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1
12-
- DB=sqlite ENABLE_SECOND_LEVEL_CACHE=1
13-
- DB=mysql ENABLE_SECOND_LEVEL_CACHE=0
14-
- DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0
15-
- DB=sqlite ENABLE_SECOND_LEVEL_CACHE=0
10+
- DB=mysql
11+
- DB=pgsql
12+
- DB=sqlite
1613

1714
before_script:
1815
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
@@ -22,7 +19,9 @@ before_script:
2219
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi"
2320
- composer install --prefer-source --dev
2421

25-
script: phpunit -v --configuration tests/travis/$DB.travis.xml
22+
script:
23+
- ENABLE_SECOND_LEVEL_CACHE=0 ./vendor/bin/phpunit -v -c tests/travis/$DB.travis.xml --coverage-clover ./build/logs/clover.xml
24+
- 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
2625

2726
after_script:
2827
- php vendor/bin/coveralls -v
@@ -32,11 +31,6 @@ matrix:
3231
- php: hhvm
3332
exclude:
3433
- php: hhvm
35-
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=0 # driver currently unsupported by HHVM
34+
env: DB=pgsql # driver currently unsupported by HHVM
3635
- php: hhvm
37-
env: DB=pgsql ENABLE_SECOND_LEVEL_CACHE=1 # driver currently unsupported by HHVM
38-
- php: hhvm
39-
env: DB=mysqli ENABLE_SECOND_LEVEL_CACHE=0 # driver currently unsupported by HHVM
40-
- php: hhvm
41-
env: DB=mysqli ENABLE_SECOND_LEVEL_CACHE=1 # driver currently unsupported by HHVM
42-
36+
env: DB=mysqli # driver currently unsupported by HHVM

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"symfony/console": "2.*"
2121
},
2222
"require-dev": {
23-
"symfony/yaml": "2.1",
23+
"symfony/yaml": "~2.1",
24+
"phpunit/phpunit": "~3.7",
2425
"satooshi/php-coveralls": "dev-master"
2526
},
2627
"suggest": {

tests/travis/mysql.travis.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
<var name="tmpdb_port" value="3306"/>
1717
</php>
1818

19-
<logging>
20-
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
21-
</logging>
22-
2319
<testsuites>
2420
<testsuite name="Doctrine ORM Test Suite">
2521
<directory>./../Doctrine/Tests/ORM</directory>
@@ -33,7 +29,6 @@
3329
<groups>
3430
<exclude>
3531
<group>performance</group>
36-
<group>non-cacheable</group>
3732
<group>locking_functional</group>
3833
</exclude>
3934
</groups>

tests/travis/pgsql.travis.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
<var name="tmpdb_port" value="5432"/>
2020
</php>
2121

22-
<logging>
23-
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
24-
</logging>
25-
2622
<testsuites>
2723
<testsuite name="Doctrine ORM Test Suite">
2824
<directory>./../Doctrine/Tests/ORM</directory>
@@ -36,7 +32,6 @@
3632
<groups>
3733
<exclude>
3834
<group>performance</group>
39-
<group>non-cacheable</group>
4035
<group>locking_functional</group>
4136
</exclude>
4237
</groups>

tests/travis/sqlite.travis.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<phpunit bootstrap="../Doctrine/Tests/TestInit.php">
33

4-
<logging>
5-
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
6-
</logging>
7-
84
<testsuites>
95
<testsuite name="Doctrine ORM Test Suite">
106
<directory>./../Doctrine/Tests/ORM</directory>
@@ -18,7 +14,6 @@
1814
<groups>
1915
<exclude>
2016
<group>performance</group>
21-
<group>non-cacheable</group>
2217
<group>locking_functional</group>
2318
</exclude>
2419
</groups>

0 commit comments

Comments
 (0)