Skip to content

Commit

Permalink
Merge pull request pdepend#331 from emirb/codecov
Browse files Browse the repository at this point in the history
Add codecov.io integration
  • Loading branch information
Emir Beganović authored Nov 16, 2017
2 parents 9cd3798 + 9077570 commit 6f712ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ before_script:
- composer install

script:
- if [ $TRAVIS_PHP_VERSION != 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors ; fi
- if [ $TRAVIS_PHP_VERSION = 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors --coverage-text ; fi
# - if [ $TRAVIS_PHP_VERSION != 5.6 ] && [ $TRAVIS_PHP_VERSION != 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors ; fi
# - if [ $TRAVIS_PHP_VERSION = 5.6 ] || [ $TRAVIS_PHP_VERSION = 7.0 ]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors --coverage-text ; fi
- vendor/bin/phpunit --configuration $TEST_CONFIG --colors --coverage-clover=coverage.xml
- bash <(curl -s https://codecov.io/bash)

notifications:
irc: "irc.freenode.org#pdepend"
4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@
<exclude>
<!-- Exclude all vendor files -->
<directory suffix=".php">vendor/</directory>
<directory suffix=".php">src/test</directory>
<!-- Exclude this exotic result printer -->
<file>src/main/php/PDepend/DbusUI/ResultPrinter.php</file>
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="clover.xml"/>
</logging>
</phpunit>

0 comments on commit 6f712ca

Please sign in to comment.