Skip to content

Commit

Permalink
Test coverage tracking via ScrutinizerCI
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Mar 27, 2014
1 parent b14aad1 commit 6fd6cd9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 0 additions & 4 deletions .coveralls.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ matrix:
php: 5.4
- env: DBTYPE=mysql; MW=1.21.0
php: 5.5
- env: DBTYPE=sqlite; MW=master
- env: DBTYPE=sqlite; MW=master; TYPE=coverage
php: 5.6
- env: DBTYPE=sqlite; MW=1.19.0
php: 5.5
Expand Down
9 changes: 5 additions & 4 deletions build/travis/after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

set -x

if [ "$MW-$DBTYPE" == "master-mysql" ]
originalDirectory=$(pwd)

if [ "$TYPE" == "coverage" ]
then
cd ../../extensions/Maps
composer require satooshi/php-coveralls:dev-master
php vendor/bin/coveralls -v
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover $originalDirectory/build/coverage.clover
fi
4 changes: 2 additions & 2 deletions build/travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -x

cd ../phase3/extensions/Maps

if [ "$MW-$DBTYPE" == "master-mysql" ]
if [ "$TYPE" == "coverage" ]
then
phpunit --coverage-clover ../../extensions/Maps/build/logs/clover.xml
phpunit --coverage-clover ../../extensions/Maps/build/logs/clover.clover
else
phpunit
fi

0 comments on commit 6fd6cd9

Please sign in to comment.