File tree Expand file tree Collapse file tree 4 files changed +7
-18
lines changed Expand file tree Collapse file tree 4 files changed +7
-18
lines changed Original file line number Diff line number Diff line change 12
12
- DB=sqlite
13
13
14
14
before_script :
15
- - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
16
- - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests_tmp;' -U postgres; fi"
17
- - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests;' -U postgres; fi"
18
- - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests_tmp;' -U postgres; fi"
19
- - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi"
15
+ - if [[ $TRAVIS_PHP_VERSION = '5.6' && $DB = 'sqlite' ]]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; else PHPUNIT_FLAGS=""; fi
16
+ - if [ $DB = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi
17
+ - if [ $DB = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests_tmp;' -U postgres; fi
18
+ - if [ $DB = 'pgsql' ]; then psql -c 'create database doctrine_tests;' -U postgres; fi
19
+ - if [ $DB = 'pgsql' ]; then psql -c 'create database doctrine_tests_tmp;' -U postgres; fi
20
+ - if [ $DB = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi
20
21
- composer install --prefer-dist --dev
21
22
22
- script : phpunit --configuration tests/travis/$DB.travis.xml
23
+ script : phpunit $PHPUNIT_FLAGS --configuration tests/travis/$DB.travis.xml
23
24
24
25
after_script :
25
26
- php vendor/bin/coveralls -v
Original file line number Diff line number Diff line change 16
16
<var name =" tmpdb_port" value =" 3306" />
17
17
</php >
18
18
19
- <logging >
20
- <log type =" coverage-clover" target =" ../../build/logs/clover.xml" />
21
- </logging >
22
-
23
19
<testsuites >
24
20
<testsuite name =" Doctrine ORM Test Suite" >
25
21
<directory >./../Doctrine/Tests/ORM</directory >
Original file line number Diff line number Diff line change 19
19
<var name =" tmpdb_port" value =" 5432" />
20
20
</php >
21
21
22
- <logging >
23
- <log type =" coverage-clover" target =" ../../build/logs/clover.xml" />
24
- </logging >
25
-
26
22
<testsuites >
27
23
<testsuite name =" Doctrine ORM Test Suite" >
28
24
<directory >./../Doctrine/Tests/ORM</directory >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<phpunit >
3
3
4
- <logging >
5
- <log type =" coverage-clover" target =" ../../build/logs/clover.xml" />
6
- </logging >
7
-
8
4
<testsuites >
9
5
<testsuite name =" Doctrine ORM Test Suite" >
10
6
<directory >./../Doctrine/Tests/ORM</directory >
You can’t perform that action at this time.
0 commit comments