subsurface/scripts/android/travisbuild.sh
Dirk Hohndel d6b043cd37 build-system: tell Travis to wait longer for downloads
But simply ignore when building outside of Travis.
Of course since we are building Android in a container, we need to first pass
the environment variable to the container...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-03 14:24:18 -07:00

15 lines
539 B
Bash

#!/bin/bash
set -x
set -e
docker exec -e TRAVIS="$TRAVIS" -t builder subsurface/packaging/android/android-build-wrapper.sh
# Extract the built apk from the builder container
docker cp builder:/workspace/subsurface-mobile-build-arm/build/outputs/apk/ .
# TODO: Caching
# Yank Qt, android-sdk, android-ndk and other 3pp source tar balls out from the container and cache them.
#docker exec builder mkdir -p 3pp
#docker exec builder sh -c 'mv Qt android-sdk-linux android-ndk-* *.tar.gz *.tar.bz2 3pp/'
#docker cp builder:/workspace/3pp .