File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ matrix:
13
13
env : dependencies="--prefer-lowest --prefer-stable"
14
14
15
15
script :
16
- - vendor/bin/tester tests -s -p php -c tests/php-unix.ini
16
+ - vendor/bin/tester tests -s -p php -c tests/php-unix.ini $COVERAGE
17
17
- php temp/code-checker/src/code-checker.php --short-arrays -i netteForms
18
18
- if [ $TRAVIS_PHP_VERSION == "5.6" ]; then grunt --gruntfile=tests/netteForms/Gruntfile.js test; fi
19
19
@@ -26,6 +26,13 @@ before_script:
26
26
- travis_retry composer update --no-interaction --prefer-dist $dependencies
27
27
- travis_retry composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction
28
28
- if [ $TRAVIS_PHP_VERSION == "5.6" ]; then npm install -g grunt-cli; cd tests/netteForms; npm install; bower install; cd ../..; fi
29
+ - if [ $TRAVIS_PHP_VERSION == "7.0" ]; then COVERAGE="-p phpdbg --coverage ./coverage.xml --coverage-src ./src"; fi
30
+
31
+ after_script :
32
+ - if [ $TRAVIS_PHP_VERSION == "7.0" ]; then
33
+ wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
34
+ && php coveralls.phar --verbose --config tests/.coveralls.yml
35
+ || true; fi
29
36
30
37
sudo : false
31
38
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ Nette Forms: greatly facilitates web forms
3
3
4
4
[ ![ Downloads this Month] ( https://img.shields.io/packagist/dm/nette/forms.svg )] ( https://packagist.org/packages/nette/forms )
5
5
[ ![ Build Status] ( https://travis-ci.org/nette/forms.svg?branch=master )] ( https://travis-ci.org/nette/forms )
6
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/nette/forms/badge.svg?branch=master )] ( https://coveralls.io/github/nette/forms?branch=master )
6
7
[ ![ Latest Stable Version] ( https://poser.pugx.org/nette/forms/v/stable )] ( https://github.com/nette/forms/releases )
7
8
[ ![ License] ( https://img.shields.io/badge/license-New%20BSD-blue.svg )] ( https://github.com/nette/forms/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