This repository was archived by the owner on Dec 7, 2018. It is now read-only.
File tree 2 files changed +33
-1
lines changed
2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 11
11
- 7.2snapshot
12
12
- master
13
13
14
+ services :
15
+ - mysql
16
+
14
17
env :
15
18
matrix :
16
19
- DEPENDENCIES="high"
21
24
before_install :
22
25
- composer self-update
23
26
- composer clear-cache
27
+ - mysql -e 'CREATE DATABASE IF NOT EXISTS dbunit;'
24
28
25
29
install :
26
30
- if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
27
31
- if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
28
32
29
33
script :
30
- - ./vendor/bin/phpunit
34
+ - ./vendor/bin/phpunit --configuration phpunit-travis.xml
31
35
32
36
notifications :
33
37
email : false
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/6.0/phpunit.xsd"
4
+ bootstrap =" vendor/autoload.php"
5
+ beStrictAboutCoversAnnotation =" true"
6
+ beStrictAboutOutputDuringTests =" true"
7
+ beStrictAboutTodoAnnotatedTests =" true"
8
+ verbose =" true" >
9
+ <testsuite >
10
+ <directory suffix =" Test.php" >tests/Constraint</directory >
11
+ <directory suffix =" Test.php" >tests/DataSet</directory >
12
+ <directory suffix =" Test.php" >tests/Operation</directory >
13
+ <directory suffix =" Test.php" >tests/DB</directory >
14
+ </testsuite >
15
+
16
+ <php >
17
+ <const name =" PHPUNIT_TESTSUITE" value =" true" />
18
+ <const name =" PHPUNIT_TESTSUITE_EXTENSION_DATABASE_MYSQL_DSN" value =" mysql:host=127.0.0.1;dbname=dbunit;port=3306" />
19
+ <const name =" PHPUNIT_TESTSUITE_EXTENSION_DATABASE_MYSQL_USERNAME" value =" root" />
20
+ <const name =" PHPUNIT_TESTSUITE_EXTENSION_DATABASE_MYSQL_PASSWORD" value =" " />
21
+ </php >
22
+
23
+ <filter >
24
+ <whitelist processUncoveredFilesFromWhitelist =" true" >
25
+ <directory suffix =" .php" >src</directory >
26
+ </whitelist >
27
+ </filter >
28
+ </phpunit >
You can’t perform that action at this time.
0 commit comments