diff options
author | sgiehl <stefan@piwik.org> | 2014-10-12 15:50:50 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2014-10-12 15:50:50 +0400 |
commit | d2210081f581a867d85f81103f65ce4b1cf2182c (patch) | |
tree | e61c35a0fc8620c9d3a1e76dbb5e384a70208dff /tests/travis | |
parent | 1bb3926e7123dcb8ff61a676665078ac4ae53d02 (diff) |
ignore update files of plugins in code coveragre
Diffstat (limited to 'tests/travis')
-rwxr-xr-x | tests/travis/prepare.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/travis/prepare.sh b/tests/travis/prepare.sh index ff992c7ad6..b430f698ff 100755 --- a/tests/travis/prepare.sh +++ b/tests/travis/prepare.sh @@ -24,7 +24,7 @@ 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<exclude>\n<directory suffix=\".php\">..\/..\/plugins\/'$PLUGIN_NAME'\/tests<\/directory>\n<directory suffix=\".php\">..\/..\/plugins\/'$PLUGIN_NAME'\/Test<\/directory>\n<\/exclude>\n<\/whitelist>\n/};p' ./tests/PHPUnit/phpunit.xml > ./tests/PHPUnit/phpunit.xml.new && mv ./tests/PHPUnit/phpunit.xml.new ./tests/PHPUnit/phpunit.xml + sed -n '/<filter>/{p;:a;N;/<\/filter>/!ba;s/.*\n/<whitelist addUncoveredFilesFromWhitelist=\"true\">\n<directory suffix=\".php\">..\/..\/plugins\/'$PLUGIN_NAME'<\/directory>\n<exclude>\n<directory suffix=\".php\">..\/..\/plugins\/'$PLUGIN_NAME'\/tests<\/directory>\n<directory suffix=\".php\">..\/..\/plugins\/'$PLUGIN_NAME'\/Test<\/directory>\n<directory suffix=\".php\">..\/..\/plugins\/'$PLUGIN_NAME'\/Updates<\/directory>\n<\/exclude>\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 |