aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/android/travisbuild.sh
blob: 84ce42f6da1684fe239c6da47d495dd470ee9234 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

set -x
set -e

docker exec -e TRAVIS="$TRAVIS" -t builder subsurface/packaging/android/android-build-wrapper.sh

# Extract the built apk from the builder container
docker cp builder:/workspace/subsurface-mobile-build-arm/build/outputs/apk/ .

# TODO: Caching
# Yank Qt, android-sdk, android-ndk and other 3pp source tar balls out from the container and cache them.
#docker exec builder mkdir -p 3pp
#docker exec builder sh -c 'mv Qt android-sdk-linux android-ndk-* *.tar.gz *.tar.bz2 3pp/'
#docker cp builder:/workspace/3pp .