Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 5178230

Browse files
committed
Use a composer script for declaring how coverage is uploaded
1 parent 2712a13 commit 5178230

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ script:
7070
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
7171

7272
after_script:
73-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry vendor/bin/php-coveralls -v ; fi
73+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi
7474

7575
notifications:
7676
email: false

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"cs-check": "phpcs",
5858
"cs-fix": "phpcbf",
5959
"test": "phpunit --colors=always",
60-
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
60+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
61+
"upload-coverage": "php-coveralls -v"
6162
}
6263
}

0 commit comments

Comments
 (0)