2017-02-06 07:06:55 +00:00
|
|
|
#!/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
|
|
|
|
|
2018-12-23 02:55:43 +00:00
|
|
|
# setup build dir on the host, not inside of the container
|
2018-12-29 08:01:06 +00:00
|
|
|
mkdir -p ../subsurface-mobile-build-docker-arm
|
|
|
|
mkdir -p ../subsurface-mobile-build-docker-arm64
|
2018-12-23 02:55:43 +00:00
|
|
|
|
|
|
|
# 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 \
|
2018-12-29 08:01:06 +00:00
|
|
|
-v $PARENT/subsurface-mobile-build-docker-arm:/android/subsurface-mobile-build-arm \
|
|
|
|
-v $PARENT/subsurface-mobile-build-docker-arm64:/android/subsurface-mobile-build-arm64 \
|
2018-12-29 07:56:08 +00:00
|
|
|
--name=android-builder \
|
2018-12-23 02:55:43 +00:00
|
|
|
-w /android \
|
2020-03-05 21:36:57 +00:00
|
|
|
-d subsurface/android-build-container:5.13.10 \
|
2018-12-23 02:55:43 +00:00
|
|
|
/bin/sleep 60m
|