Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2014-10-12 03:20:47 +0400
committersgiehl <stefan@piwik.org>2014-10-12 03:20:47 +0400
commite21e7b330893f8cda3b817783c7a6fd166a6f88b (patch)
treeed99c58614d9b87729687163548436d6e0711d15 /tests
parent2e83ae083837a0fe6e9275a2557646046336c3a0 (diff)
some last updates for plugin code coverage
Diffstat (limited to 'tests')
-rwxr-xr-xtests/travis/prepare.sh5
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