Skip to content
This repository was archived by the owner on Dec 7, 2018. It is now read-only.

Commit 343e43a

Browse files
Initial work on #194
1 parent 988c952 commit 343e43a

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ php:
1111
- 7.2snapshot
1212
- master
1313

14+
services:
15+
- mysql
16+
1417
env:
1518
matrix:
1619
- DEPENDENCIES="high"
@@ -21,13 +24,14 @@ env:
2124
before_install:
2225
- composer self-update
2326
- composer clear-cache
27+
- mysql -e 'CREATE DATABASE IF NOT EXISTS dbunit;'
2428

2529
install:
2630
- if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
2731
- if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
2832

2933
script:
30-
- ./vendor/bin/phpunit
34+
- ./vendor/bin/phpunit --configuration phpunit-travis.xml
3135

3236
notifications:
3337
email: false

phpunit-travis.xml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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>

0 commit comments

Comments
 (0)