Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit a0b033f

Browse files
committed
Habilita relatório de cobertura de testes
1 parent c5f9225 commit a0b033f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.scrutinizer.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ build:
44
redis: false
55
postgresql: false
66
php:
7-
version: 5.6
7+
version: 7.1
88
tools:
9+
external_code_coverage:
10+
timeout: 300
911
php_sim: true
1012
php_pdepend: true
1113
php_analyzer: true

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@ php:
99
- hhvm
1010

1111
matrix:
12+
fast_finish: true
1213
allow_failures:
1314
- php: hhvm
1415

1516
before_script:
1617
- composer self-update
1718
- composer install
19+
- if [[ $TRAVIS_PHP_VERSION = '7.1' ]]; then PHPUNIT_FLAGS="--coverage-clover ./clover.xml"; else PHPUNIT_FLAGS=""; fi
20+
21+
script:
22+
- ./vendor/bin/phpunit $PHPUNIT_FLAGS
23+
24+
after_script:
25+
- wget https://scrutinizer-ci.com/ocular.phar
26+
- if [ -f clover.xml ]; then php ocular.phar code-coverage:upload --format=php-clover ./clover.xml; fi

0 commit comments

Comments
 (0)