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
|
|
|
|
|
|
|
|
# Ugly, but keeps it running during the build
|
2018-05-15 13:28:13 +00:00
|
|
|
docker run -v $PWD:/workspace/subsurface --name=builder -w /workspace -d ubuntu:bionic /bin/sleep 60m
|
2017-02-06 07:06:55 +00:00
|
|
|
docker exec -t builder apt-get update
|
|
|
|
# subsurface android build dependencies
|
2018-05-14 20:54:29 +00:00
|
|
|
docker exec -t builder apt-get install -y git cmake autoconf libtool-bin openjdk-8-jdk-headless wget unzip python bzip2 pkg-config
|
2017-02-06 07:06:55 +00:00
|
|
|
# Qt installer dependencies
|
|
|
|
docker exec -t builder apt-get install -y libx11-xcb1 libgl1-mesa-glx libglib2.0-0
|
|
|
|
# Inject cached 3pp's (if none exists in 3pp dir, we inject zero ones, and all is downloaded in the container)
|
|
|
|
# TODO: caching
|
|
|
|
#docker cp 3pp builder:/workspace
|
|
|
|
docker exec -t builder mkdir -p /workspace/3pp
|