Skip to content

Commit e102bd7

Browse files
author
codercat
committed
add coverage
1 parent 558c5c0 commit e102bd7

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
language: PHP
2-
script: true
1+
language: php
2+
3+
script:
4+
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
5+
6+
after_success:
7+
- bash <(curl -s https://codecov.io/bash)

phpunit.xml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
44
bootstrap="vendor/autoload.php">
5-
<testsuites>
6-
<testsuite name="unit tests">
7-
<directory>tests</directory>
8-
</testsuite>
9-
</testsuites>
5+
<filter>
6+
<whitelist>
7+
<directory>./src</directory>
8+
</whitelist>
9+
</filter>
10+
<testsuites>
11+
<testsuite name="unit tests">
12+
<directory>tests</directory>
13+
</testsuite>
14+
</testsuites>
1015
</phpunit>

0 commit comments

Comments
 (0)