File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,11 @@ matrix:
1919 include :
2020 - php : 5.6
2121 env : dependencies="--prefer-lowest --prefer-stable" PHP_BIN=php
22+ - php : 7.0
23+ env : coverage="--coverage ./coverage.xml --coverage-src ./src" PHP_BIN=phpdbg
2224
2325script :
24- - vendor/bin/tester -p $PHP_BIN tests -s
26+ - vendor/bin/tester -p $PHP_BIN tests -s $coverage
2527 - php temp/code-checker/src/code-checker.php --short-arrays
2628
2729after_failure :
@@ -33,6 +35,14 @@ before_script:
3335 - travis_retry composer update --no-interaction --prefer-dist $dependencies
3436 - travis_retry composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction
3537
38+ after_script :
39+ # Report Code Coverage
40+ - >
41+ if [ "$coverage" != "" ]; then
42+ wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
43+ && php coveralls.phar --verbose --config tests/.coveralls.yml
44+ || true; fi
45+
3646sudo : false
3747
3848cache :
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