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:
21
21
env : dependencies="--prefer-lowest --prefer-stable" PHP_BIN=php
22
22
23
23
script :
24
- - vendor/bin/tester -p $PHP_BIN tests -s
24
+ - vendor/bin/tester -p $PHP_BIN tests -s $COVERAGE
25
25
- php temp/code-checker/src/code-checker.php --short-arrays
26
26
27
27
after_failure :
@@ -32,6 +32,15 @@ before_script:
32
32
# Install Nette Tester & Code Checker
33
33
- travis_retry composer update --no-interaction --prefer-dist $dependencies
34
34
- 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
35
44
36
45
sudo : false
37
46
Original file line number Diff line number Diff line change 26
26
"latte/latte" : " Allows using Latte in templates"
27
27
},
28
28
"require-dev" : {
29
- "nette/tester" : " ~1.3 " ,
29
+ "nette/tester" : " ~1.7 " ,
30
30
"nette/di" : " ~2.3" ,
31
31
"nette/forms" : " ~2.2" ,
32
32
"nette/robot-loader" : " ~2.2" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ Nette Application MVC
3
3
4
4
[ ![ Downloads this Month] ( https://img.shields.io/packagist/dm/nette/application.svg )] ( https://packagist.org/packages/nette/application )
5
5
[ ![ 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 )
6
7
[ ![ Latest Stable Version] ( https://poser.pugx.org/nette/application/v/stable )] ( https://github.com/nette/application/releases )
7
8
[ ![ License] ( https://img.shields.io/badge/license-New%20BSD-blue.svg )] ( https://github.com/nette/application/blob/master/license.md )
8
9
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