Skip to content

Commit 2265b4c

Browse files
authored
Update .travis.yml
1 parent 4a0ff1d commit 2265b4c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ php:
88

99
before_script:
1010
- composer install
11+
- composer require satooshi/php-coveralls:~1.0@stable
12+
13+
before_script:
14+
- mkdir -p build/logs
15+
16+
17+
# Build Script. Notice: We are demanding unit to generate a clover file to our previously created folder
18+
script:
19+
# Syntax: phpunit --coverage-clover <folder>/<name>.xml --text-suffix .php [--colors] [--report-useless-tests] <tests location>.php
20+
- phpunit --coverage-clover build/logs/clover.xml --test-suffix .php --colors --report-useless-tests
1121

12-
script:
13-
- vendor/bin/phpunit
22+
# After success, run sh to bind coveralls
23+
after_success:
24+
- sh -c 'if( [ "$TRAVIS_PHP_VERSION" != "hhvm" ] ); then php vendor/bin/coveralls -v; fi;'

0 commit comments

Comments
 (0)