diff options
author | sgiehl <stefan@piwik.org> | 2014-10-12 03:20:47 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2014-10-12 03:20:47 +0400 |
commit | e21e7b330893f8cda3b817783c7a6fd166a6f88b (patch) | |
tree | ed99c58614d9b87729687163548436d6e0711d15 /tests/travis | |
parent | 2e83ae083837a0fe6e9275a2557646046336c3a0 (diff) |
some last updates for plugin code coverage
Diffstat (limited to 'tests/travis')
-rwxr-xr-x | tests/travis/prepare.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/travis/prepare.sh b/tests/travis/prepare.sh index 0343b2c127..fa7e44d972 100755 --- a/tests/travis/prepare.sh +++ b/tests/travis/prepare.sh @@ -22,6 +22,11 @@ echo "Adjusting phpunit.xml" cp ./tests/PHPUnit/phpunit.xml.dist ./tests/PHPUnit/phpunit.xml sed -i 's/@REQUEST_URI@/\//g' ./tests/PHPUnit/phpunit.xml +if [ -n "$PLUGIN_NAME" ]; +then + sed -n '/<filter>/{p;:a;N;/<\/filter>/!ba;s/.*\n/<whitelist addUncoveredFilesFromWhitelist=\"true\">\n<directory suffix=\".php\">..\/..\/plugins\/'$PLUGIN_NAME'<\/directory>\n<\/whitelist>\n/};p' ./tests/PHPUnit/phpunit.xml > ./tests/PHPUnit/phpunit.xml.new && mv ./tests/PHPUnit/phpunit.xml.new ./tests/PHPUnit/phpunit.xml +fi; + # If we have a test suite remove code coverage report if [ -n "$TEST_SUITE" ] then |