mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 11:31:29 +00:00
33643bb0af
While the project doesn't use Travis anymore, these scripts are indeed useful when building locally, so it makes sense to keep them current and working. Signed-off-by: Christof Arnosti <charno@charno.ch> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
23 lines
878 B
Bash
23 lines
878 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-docker-arm
|
|
mkdir -p ../subsurface-mobile-build-docker-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-docker-arm:/android/subsurface-mobile-build-arm \
|
|
-v $PARENT/subsurface-mobile-build-docker-arm64:/android/subsurface-mobile-build-arm64 \
|
|
--name=android-builder \
|
|
-w /android \
|
|
-d subsurface/android-build-container:5.13.10 \
|
|
/bin/sleep 60m
|