Added coveralls to travis config

This commit is contained in:
vladar 2016-11-01 17:39:52 +07:00
parent 29670b378b
commit c846809d2d
2 changed files with 14 additions and 4 deletions

View File

@ -5,11 +5,16 @@ php:
- 5.5
- 5.6
- 7.0
- nightly
- 7.1
- hhvm
install:
- composer install --prefer-dist
- composer install --dev --prefer-dist
script:
- ./bin/phpunit tests/
- mkdir -p build/logs
- bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
after_success:
- composer require "satooshi/php-coveralls:^1.0"
- travis_retry php bin/coveralls -v

View File

@ -19,10 +19,15 @@
<filter>
<whitelist>
<directory>./</directory>
<directory suffix=".php">./src</directory>
<exclude>
<directory>./bin</directory>
<directory>./docs</directory>
<directory>./build</directory>
<directory>./tests</directory>
<directory>./vendor</directory>
<directory>./examples</directory>
<directory>./benchmarks</directory>
</exclude>
</whitelist>
</filter>