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
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-03-10 21:41:52 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-03-10 21:41:52 +0400
commit35526922c526f28a6aeb98a31a62e4084c7048c7 (patch)
treeb71d31d68f5188f575cafaeb48ce83ed911b5ab9 /tests/travis
parentfefbcc191434f4830f67fe30363d57af6dfc6093 (diff)
Allow uploading artifacts for plugin UI tests.
Diffstat (limited to 'tests/travis')
-rwxr-xr-xtests/travis/upload_artifacts.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/travis/upload_artifacts.sh b/tests/travis/upload_artifacts.sh
index eeaa018aa2..f3418f360a 100755
--- a/tests/travis/upload_artifacts.sh
+++ b/tests/travis/upload_artifacts.sh
@@ -14,11 +14,21 @@ then
else
if [ "$TEST_SUITE" = "UITests" ];
then
- url_base="http://builds-artifacts.piwik.org/upload.php?auth_key=$ARTIFACTS_PASS&branch=ui-tests.$TRAVIS_BRANCH&build_id=$TRAVIS_JOB_NUMBER"
+ url_base="http://builds-artifacts.piwik.org/upload.php?auth_key=$ARTIFACTS_PASS&build_id=$TRAVIS_JOB_NUMBER&branch=ui-tests.$TRAVIS_BRANCH"
+
+ if [ -n "$PLUGIN_NAME" ];
+ then
+ url_base="$url_base.$PLUGIN_NAME&protected=1"
+ fi
echo "Uploading artifacts for $TEST_SUITE..."
- cd ./tests/PHPUnit/UI
+ if [ -n "$PLUGIN_NAME" ];
+ then
+ cd "./plugins/$PLUGIN_NAME/tests/UI"
+ else
+ cd ./tests/PHPUnit/UI
+ fi
# upload processed tarball
tar -cjf processed-ui-screenshots.tar.bz2 processed-ui-screenshots --exclude='.gitkeep'