File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
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 @@ -4,6 +4,7 @@ Nette HTTP Component
4
4
[ ![ Downloads this Month] ( https://img.shields.io/packagist/dm/nette/http.svg )] ( https://packagist.org/packages/nette/http )
5
5
[ ![ Build Status] ( https://travis-ci.org/nette/http.svg?branch=master )] ( https://travis-ci.org/nette/http )
6
6
[ ![ 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 )
7
8
[ ![ Latest Stable Version] ( https://poser.pugx.org/nette/http/v/stable )] ( https://github.com/nette/http/releases )
8
9
[ ![ License] ( https://img.shields.io/badge/license-New%20BSD-blue.svg )] ( https://github.com/nette/http/blob/master/license.md )
9
10
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