summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2014-11-22 18:37:29 +1100
committerLeith Bade <leith@mapbox.com>2014-11-22 18:37:29 +1100
commitfd3077bc7c1320bed27a8c4a2e6be9e6f84960ad (patch)
treecc2ce500b521b843830013c8ecea096317858ad4 /scripts
parentad27e0f2e211371e3a80f2b9b9b3b32e75f173b5 (diff)
downloadqtlocation-mapboxgl-fd3077bc7c1320bed27a8c4a2e6be9e6f84960ad.tar.gz
Improve upload testmunk script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis_script.sh5
-rwxr-xr-xscripts/upload_testmunk.sh21
2 files changed, 3 insertions, 23 deletions
diff --git a/scripts/travis_script.sh b/scripts/travis_script.sh
index dea2af7c17..3d55ab538c 100755
--- a/scripts/travis_script.sh
+++ b/scripts/travis_script.sh
@@ -10,8 +10,9 @@ if [[ $MASON_PLATFORM == "android" ]]; then
mapbox_time "compile_program" \
make android -j$JOBS BUILDTYPE=${BUILDTYPE}
- mapbox_time "upload_testmunk" \
- ./scripts/upload_testmunk.sh
+ mapbox_time_start "upload_testmunk"
+ (cd ./android/test/ && ./upload_testmunk.sh /android/java/app/build/outputs/app-debug.apk)
+ mapbox_time_finish
elif [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
#
# build & test Linux
diff --git a/scripts/upload_testmunk.sh b/scripts/upload_testmunk.sh
deleted file mode 100755
index 673628035d..0000000000
--- a/scripts/upload_testmunk.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-set -o pipefail
-
-echo "submitting testrun to testmunk"
-
-echo "uploading features"
-echo
-
-cd android/test
-zip -r features.zip features/
-curl -H 'Accept: application/vnd.testmunk.v1+json' -F 'file=@features.zip' 'https://If1ONAxGqcIgiI1vtK468V54ERJf1xem@api.testmunk.com/apps/Testmunk/testcases'
-cd ../..
-
-echo "uploading apk"
-echo
-
-cd android/java/app/build/outputs/apk/
-curl -H 'Accept: application/vnd.testmunk.v1+json' -F 'file=@app-debug.apk' -F 'email=leith@mapbox.com' -F 'autoStart=true' -F 'public=true' 'https://If1ONAxGqcIgiI1vtK468V54ERJf1xem@api.testmunk.com/apps/Mapbox/testruns'
-cd ../../../../../..