File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Expand file tree Collapse file tree 4 files changed +16
-2
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 2626 "latte/latte" : " Allows using Latte in templates"
2727 },
2828 "require-dev" : {
29- "nette/tester" : " ~1.3 " ,
29+ "nette/tester" : " ~1.7 " ,
3030 "nette/di" : " ~2.3" ,
3131 "nette/forms" : " ~2.2" ,
3232 "nette/robot-loader" : " ~2.2" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ Nette Application MVC
33
44[ ![ Downloads this Month] ( https://img.shields.io/packagist/dm/nette/application.svg )] ( https://packagist.org/packages/nette/application )
55[ ![ Build Status] ( https://travis-ci.org/nette/application.svg?branch=master )] ( https://travis-ci.org/nette/application )
6+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/nette/application/badge.svg?branch=master )] ( https://coveralls.io/github/nette/application?branch=master )
67[ ![ Latest Stable Version] ( https://poser.pugx.org/nette/application/v/stable )] ( https://github.com/nette/application/releases )
78[ ![ License] ( https://img.shields.io/badge/license-New%20BSD-blue.svg )] ( https://github.com/nette/application/blob/master/license.md )
89
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