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
|
|
|
|
mkdir -p ../subsurface-mobile-build-arm
|
2018-12-24 21:31:34 +00:00
|
|
|
mkdir -p ../subsurface-mobile-build-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 \
|
|
|
|
-v $PARENT/subsurface-mobile-build-arm:/android/subsurface-mobile-build-arm \
|
2018-12-24 21:31:34 +00:00
|
|
|
-v $PARENT/subsurface-mobile-build-arm64:/android/subsurface-mobile-build-arm64 \
|
2018-12-23 02:55:43 +00:00
|
|
|
--name=builder \
|
|
|
|
-w /android \
|
2018-12-24 04:06:16 +00:00
|
|
|
-d dirkhh/android-builder:5.12.02 \
|
2018-12-23 02:55:43 +00:00
|
|
|
/bin/sleep 60m
|