Skip to content

Commit

Permalink
tests coverage: coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Aug 27, 2016
1 parent 74c326c commit e96be16
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,26 @@ php:
- hhvm

matrix:
include:
- php: 7.0
env: NETTE=nette-2.2 COVERAGE="--coverage ./coverage.xml --coverage-src ./src" TESTER_RUNTIME="phpdbg"
allow_failures:
- php: hhvm
- php: 7.0
env: NETTE=nette-2.2 COVERAGE="--coverage ./coverage.xml --coverage-src ./src" TESTER_RUNTIME="phpdbg"

before_script:
- "php tests/prepare-composer.php"
- composer self-update
- composer install --no-interaction --prefer-source
- ./vendor/bin/parallel-lint -e php,phpt --exclude vendor .
- travis_retry wget -O /tmp/coveralls.phar https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar

script: ./vendor/bin/tester -c ./tests/php.ini-unix ./tests/KdybyTests/
script:
- vendor/bin/tester $COVERAGE -s -p ${TESTER_RUNTIME:-php} -c ./tests/php.ini-unix ./tests/KdybyTests/

after_script:
- if [ "$COVERAGE" != "" ]; then php /tmp/coveralls.phar --verbose --config tests/.coveralls.yml || true; fi

after_failure:
- 'for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done'
4 changes: 4 additions & 0 deletions tests/.coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# for php-coveralls
service_name: travis-ci
coverage_clover: coverage.xml
json_path: coverage.json

0 comments on commit e96be16

Please sign in to comment.