We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a0ff1d commit 2265b4cCopy full SHA for 2265b4c
.travis.yml
@@ -8,6 +8,17 @@ php:
8
9
before_script:
10
- 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
21
-script:
- - 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