Skip to content

Commit 01bc10e

Browse files
committed
Added coveralls support and updated comopser test to output clover.xml
1 parent 7b12923 commit 01bc10e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ php:
55
install:
66
- composer install
77
script: phpunit --bootstrap test/unit/bootstrap.php ./test/unit
8+
after_script:
9+
- php vendor/bin/coveralls
810
notifications:
911
slack:
1012
secure: mw6HF2KR0YwYcIaYvV6qjuWC+XSIP8SQOe13VwmGf3b783hMcZDZTUS9N4bIfpwYi74A9qmzKdc425OSu45nceAf7hzFusCY5rYMoLQK/ksJ7sd+ay7tWhPRuomG1w8idTyXtzce23zOfBtOCHQakbavH2Uz6mh5lJYPFlMKW4c=

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
"scripts": {
1212
"post-install-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi",
1313
"post-update-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi",
14-
"test": "phpunit --coverage-html test/output/report --bootstrap test/unit/bootstrap.php ./test/unit/"
14+
"test": "phpunit --coverage-html test/output/report --coverage-clover test/output/clover.xml --bootstrap test/unit/bootstrap.php ./test/unit/"
1515
},
1616
"require": {
1717
"php": ">=5.3.0",
1818
"guzzlehttp/guzzle": "3.8.1"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "4.3.*"
21+
"phpunit/phpunit": "4.3.*",
22+
"satooshi/php-coveralls": "dev-master"
2223
},
2324
"autoload": {
2425
"psr-4": {

0 commit comments

Comments
 (0)