Use testmunk in travis
This commit is contained in:
1
Makefile
1
Makefile
@@ -159,6 +159,7 @@ clean: clear_xcode_cache
|
||||
-rm -rf ./config.gypi ./config-ios.gypi ./config-android.gypi
|
||||
-rm -rf ./android/java/build ./android/java/app/build ./android/java/lib/build
|
||||
-rm -rf ./android/java/lib/src/main/jniLibs ./android/java/lib/src/main/assets
|
||||
-rm -f ./android/test/features.zip
|
||||
|
||||
distclean: clean
|
||||
-rm -rf ./mason_packages
|
||||
|
||||
1
android/test/.gitignore
vendored
Normal file
1
android/test/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
features.zip
|
||||
@@ -9,6 +9,9 @@ git submodule update --init styles
|
||||
if [[ $MASON_PLATFORM == "android" ]]; then
|
||||
mapbox_time "compile_program" \
|
||||
make android -j$JOBS BUILDTYPE=${BUILDTYPE}
|
||||
|
||||
mapbox_time "upload_testmunk" \
|
||||
./scripts/upload_testmunk.sh
|
||||
elif [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
|
||||
#
|
||||
# build & test Linux
|
||||
|
||||
17
scripts/upload_testmunk.sh
Executable file
17
scripts/upload_testmunk.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
echo "submitting testrun to testmunk"
|
||||
|
||||
echo "uploading features"
|
||||
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"
|
||||
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 ../../../../../..
|
||||
Reference in New Issue
Block a user