Skip to content

Commit fcd4629

Browse files
author
Supply.Parts
committed
add coveralls
1 parent cd72130 commit fcd4629

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
.idea
22

3+
# composer
34
/vendor
45
/composer.lock
56

67
# phpunit
78
phpunit.phar
89
/phpunit.xml
910
/tests/runtime
10-
/tests/data/config.local.php
11+
/tests/data/config.local.php
12+
13+
# coveralls
14+
coveralls.phar
15+
/build

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ cache:
2222
- $HOME/.composer/cache
2323

2424
install:
25+
- travis_retry composer require --prefer-dist satooshi/php-coveralls
2526
- travis_retry composer self-update && composer --version
2627
- travis_retry composer global require "fxp/composer-asset-plugin:^1.3.1"
2728
- export PATH="$HOME/.composer/vendor/bin:$PATH"
28-
- travis_retry composer install --prefer-dist --no-interaction
29+
- travis_retry composer install --prefer-dist --no-interaction
30+
31+
after_script:
32+
- travis_retry php vendor/bin/coveralls -v

phpunit.xml.dist

+8
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,12 @@
1010
<directory>./tests</directory>
1111
</testsuite>
1212
</testsuites>
13+
<filter>
14+
<whitelist processUncoveredFilesFromWhitelist="true">
15+
<directory suffix=".php">src</directory>
16+
</whitelist>
17+
</filter>
18+
<logging>
19+
<log type="coverage-clover" target="build/logs/clover.xml"/>
20+
</logging>
1321
</phpunit>

0 commit comments

Comments
 (0)