diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-10 21:41:52 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-10 21:41:52 +0400 |
commit | 35526922c526f28a6aeb98a31a62e4084c7048c7 (patch) | |
tree | b71d31d68f5188f575cafaeb48ce83ed911b5ab9 /tests/travis | |
parent | fefbcc191434f4830f67fe30363d57af6dfc6093 (diff) |
Allow uploading artifacts for plugin UI tests.
Diffstat (limited to 'tests/travis')
-rwxr-xr-x | tests/travis/upload_artifacts.sh | 14 |
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' |