subsurface/scripts/android/before_install.sh
Dirk Hohndel f11f4dc139 Travis: use Android docker image for build
This should make it easier to make changes to our build environment.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-12-30 11:20:34 -08:00

21 lines
702 B
Bash

#!/bin/bash
# Travis only pulls shallow repos. But that messes with git describe.
# Sorry Travis, fetching the whole thing and the tags as well...
git fetch --unshallow
git pull --tags
git describe
# setup build dir on the host, not inside of the container
mkdir -p ../subsurface-mobile-build-arm
# this uses a custom built Ubuntu image that includes Qt for Android and
# Android NDK/SDK
# Running sleep to keep the container running during the build
PARENT="$( cd .. && pwd )"
docker run -v $PWD:/android/subsurface \
-v $PARENT/subsurface-mobile-build-arm:/android/subsurface-mobile-build-arm \
--name=builder \
-w /android \
-d dirkhh/android-builder:5.11.03 \
/bin/sleep 60m