Skip to content

Commit

Permalink
add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Supply.Parts committed May 7, 2017
1 parent cd72130 commit fcd4629
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
.idea

# composer
/vendor
/composer.lock

# phpunit
phpunit.phar
/phpunit.xml
/tests/runtime
/tests/data/config.local.php
/tests/data/config.local.php

# coveralls
coveralls.phar
/build
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ cache:
- $HOME/.composer/cache

install:
- travis_retry composer require --prefer-dist satooshi/php-coveralls
- travis_retry composer self-update && composer --version
- travis_retry composer global require "fxp/composer-asset-plugin:^1.3.1"
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --prefer-dist --no-interaction
- travis_retry composer install --prefer-dist --no-interaction

after_script:
- travis_retry php vendor/bin/coveralls -v
8 changes: 8 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@
<directory>./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>

0 comments on commit fcd4629

Please sign in to comment.