Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

Commit

Permalink
Adds coveralls to Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
johan@baboons.se authored and johan@baboons.se committed May 10, 2017
1 parent 2460498 commit 37d53fe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,14 @@ php:
- '7.1'

install:
- composer install
- composer install
- composer require satooshi/php-coveralls:~0.6@stable

before_script:
- mkdir -p build/logs

script:
- phpunit --coverage-clover build/logs/clover.xml

after_success:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'
9 changes: 9 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src</directory>
<exclude>
<directory>./vendor</directory>
<directory>./tests</directory>
</exclude>
</whitelist>
</filter>
</phpunit>

0 comments on commit 37d53fe

Please sign in to comment.