Skip to content

Commit

Permalink
Add coveralls config.
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoirotte committed Sep 15, 2013
1 parent 979cfd3 commit 512aed8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
service_name: travis-ci
src_dir: src
coverage_clover: clover.xml
json_path: coveralls.json
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ notifications:
irc: "irc.iiens.net#Erebot"

before_script:
- wget http://getcomposer.org/composer.phar
- if [[ "$TRAVIS_PHP_VERSION" = "5.3.3" ]]; then php composer.phar install --dev --prefer-source; fi
- if [[ "$TRAVIS_PHP_VERSION" != "5.3.3" ]]; then php composer.phar install --dev; fi
- if [ "$TRAVIS_PHP_VERSION" = "5.3.3" ]; then prefer_source="--prefer-source"; else prefer_source=""; fi
- composer self-update -n
- composer install --dev -n $prefer_source

script:
- phpunit --bootstrap vendor/erebot/testenv/bootstrap.php tests/
- phpunit --coverage-clover clover.xml --bootstrap vendor/erebot/testenv/bootstrap.php tests/

after_script:
- composer require --dev $prefer_source "satooshi/php-coveralls dev-master"
- php vendor/bin/coveralls -n -v

0 comments on commit 512aed8

Please sign in to comment.