From 3f75dd8fa35e855eba94ae272ede275536b30d98 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 27 Jun 2014 20:34:42 +0200 Subject: [PATCH] [ticket/271] Add coveralls to travis.yml B3P-271 --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 58d1e07d..b36a5c98 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,11 +46,16 @@ install: before_script: - travis/setup-database.sh $DB $TRAVIS_PHP_VERSION + - mkdir build/logs + - git clone "https://github.com/satooshi/php-coveralls.git" "phpBB/vendor/coveralls" script: - sh -c "if [ '$SNIFF' != '0' ]; then travis/phing-sniff.sh $DB $TRAVIS_PHP_VERSION; fi" - sh -c "if [ '$IMAGE_ICC' != '0' ]; then travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION; fi" - - phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/travis/phpunit-$DB-travis.xml --bootstrap ./tests/bootstrap.php + - sh -c "if [ '$TRAVIS_PHP_VERSION' == '5.5' -a '$DB' == 'mysqli' ]; then phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/travis/phpunit-$DB-travis.xml --bootstrap ./tests/bootstrap.php --coverage-clover build/logs/clover.xml; else phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/travis/phpunit-$DB-travis.xml --bootstrap ./tests/bootstrap.php; fi" + +after_script: + - php phpBB/vendor/coveralls/composer/bin/coveralls notifications: email: