mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
1e1457318c
Users that use docker locally for Windows style build and Android style builds will (probably) not like that we use the same name for both docker containers. So, give the android builder its own name. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
23 lines
838 B
Bash
23 lines
838 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
|
|
mkdir -p ../subsurface-mobile-build-arm64
|
|
|
|
# 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 \
|
|
-v $PARENT/subsurface-mobile-build-arm64:/android/subsurface-mobile-build-arm64 \
|
|
--name=android-builder \
|
|
-w /android \
|
|
-d dirkhh/android-builder:5.12.02 \
|
|
/bin/sleep 60m
|