summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-03-24 17:10:20 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-03-28 09:37:42 +0200
commit93380be83c3ace929f2dc573002759d22709dd2c (patch)
treed0c2c128b0904761e9f4a426e487caa244b98079 /docker
parent66ed1a10803320e96382feb00c18ee0bfd507b02 (diff)
downloadqtlocation-mapboxgl-93380be83c3ace929f2dc573002759d22709dd2c.tar.gz
[build] Add Dockerfile for Bitrise
Diffstat (limited to 'docker')
-rw-r--r--docker/bitrise/android/Dockerfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/docker/bitrise/android/Dockerfile b/docker/bitrise/android/Dockerfile
new file mode 100644
index 0000000000..264fa01b98
--- /dev/null
+++ b/docker/bitrise/android/Dockerfile
@@ -0,0 +1,21 @@
+FROM bitriseio/android-ndk:latest
+
+# Install Google Cloud SDK for Firebase
+RUN set -eu && \
+ (echo "deb http://packages.cloud.google.com/apt cloud-sdk-$(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list) && \
+ (curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -) && \
+ sudo apt-get update && \
+ sudo apt-get install -y google-cloud-sdk python-dev python-setuptools ccache && \
+ sudo apt-get clean && \
+ sudo easy_install -U pip && \
+ pip install --no-cache-dir awscli && \
+ mkdir -p "${ANDROID_HOME}/licenses" && \
+ (echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license")
+
+RUN set -eu && \
+ git clone --depth=1 "https://github.com/mapbox/mapbox-gl-native.git" . && \
+ ccache -z && \
+ BUILDTYPE=Debug make android-test-lib-arm-v7 && \
+ BUILDTYPE=Debug make android-checkstyle && \
+ ccache -s && \
+ cd .. && rm -rf src && mkdir src