File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ matrix:
2121 env : dependencies="--prefer-lowest --prefer-stable" PHP_BIN=php
2222
2323script :
24- - vendor/bin/tester -p $PHP_BIN tests -s
24+ - vendor/bin/tester -p $PHP_BIN tests -s $COVERAGE
2525 - php temp/code-checker/src/code-checker.php --short-arrays
2626
2727after_failure :
@@ -32,6 +32,15 @@ before_script:
3232 # Install Nette Tester & Code Checker
3333 - travis_retry composer update --no-interaction --prefer-dist $dependencies
3434 - travis_retry composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction
35+ - if [ $TRAVIS_PHP_VERSION == "7.0" ]; then COVERAGE="-p phpdbg --coverage ./coverage.xml --coverage-src ./src"; fi
36+
37+ after_script :
38+ # Report Code Coverage
39+ - >
40+ if [ "$COVERAGE" != "" ]; then
41+ wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
42+ && php coveralls.phar --verbose --config tests/.coveralls.yml
43+ || true; fi
3544
3645sudo : false
3746
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Nette HTTP Component
44[ ![ Downloads this Month] ( https://img.shields.io/packagist/dm/nette/http.svg )] ( https://packagist.org/packages/nette/http )
55[ ![ Build Status] ( https://travis-ci.org/nette/http.svg?branch=master )] ( https://travis-ci.org/nette/http )
66[ ![ Build Status Windows] ( https://ci.appveyor.com/api/projects/status/github/nette/http?branch=master&svg=true )] ( https://ci.appveyor.com/project/dg/http/branch/master )
7+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/nette/http/badge.svg?branch=master )] ( https://coveralls.io/github/nette/http?branch=master )
78[ ![ Latest Stable Version] ( https://poser.pugx.org/nette/http/v/stable )] ( https://github.com/nette/http/releases )
89[ ![ License] ( https://img.shields.io/badge/license-New%20BSD-blue.svg )] ( https://github.com/nette/http/blob/master/license.md )
910
Original file line number Diff line number Diff line change 1+ # for php-coveralls
2+ service_name : travis-ci
3+ coverage_clover : coverage.xml
4+ json_path : coverage.json
You can’t perform that action at this time.
0 commit comments