Commit de7b1186 authored by Bastien Le Querrec's avatar Bastien Le Querrec

remove deprecated script

parent eb5b11d1
Pipeline #151 passed with stages
in 48 minutes and 34 seconds
#!/usr/bin/env bash
# Upload a build to
# usage: ./scripts/ <key>
set -eo pipefail
if [ "$#" -lt 1 ]; then
echo "usage: ./scripts/travis-upload <key>"
exit 1
if [ `basename $(pwd)` = "scripts" ]; then
cd ..
if [ ! -f "./build/outputs/apk/Silence-debug.apk" ]; then
echo "APK not found. Did you run `./gradlew build`?"
exit 1
COMMIT=$(git rev-parse --short HEAD)
BRANCH=$(git branch | head -2 | tail -1 | xargs) # HEAD is detached in Travis CI builds
curl --form "fileupload=@./build/outputs/apk/Silence-debug.apk;filename=Silence-debug-$BRANCH-$COMMIT.apk" -H "Authorization: KEY $1"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment