-
Notifications
You must be signed in to change notification settings - Fork 891
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
112 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
mkdir -p target | ||
|
||
DOCKER="$1" | ||
TARGET="$2" | ||
SKIP_TESTS="$3" | ||
|
||
if [ -f "ci/docker/$DOCKER/Dockerfile" ]; then | ||
docker build -t "$DOCKER" "ci/docker/$DOCKER/" | ||
fi | ||
|
||
docker run \ | ||
--entrypoint bash \ | ||
-u `id -u`:`id -g` \ | ||
-v $HOME/rust:/travis-rust:ro \ | ||
-v `pwd`:/buildslave:ro \ | ||
-v `pwd`/target:/buildslave/target \ | ||
-e TARGET=$TARGET \ | ||
-e SKIP_TESTS=$SKIP_TESTS \ | ||
-it $DOCKER \ | ||
ci/run-docker.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
cmake \ | ||
curl \ | ||
gcc \ | ||
libc6-dev \ | ||
make \ | ||
pkg-config | ||
|
||
RUN apt-get install -y --no-install-recommends \ | ||
unzip \ | ||
python && \ | ||
curl -O https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip && \ | ||
unzip -q android-ndk-r13b-linux-x86_64.zip && \ | ||
./android-ndk-r13b/build/tools/make_standalone_toolchain.py \ | ||
--install-dir /android-ndk/arm \ | ||
--arch arm \ | ||
--api 21 && \ | ||
./android-ndk-r13b/build/tools/make_standalone_toolchain.py \ | ||
--install-dir /android-ndk/arm64 \ | ||
--arch arm64 \ | ||
--api 21 && \ | ||
./android-ndk-r13b/build/tools/make_standalone_toolchain.py \ | ||
--install-dir /android-ndk/x86 \ | ||
--arch x86 \ | ||
--api 21 && \ | ||
rm -rf ./android-ndk-r13b-linux-x86_64.zip ./android-ndk-r13b && \ | ||
apt-get purge --auto-remove -y unzip python | ||
|
||
ENV PATH=$PATH:/android-ndk/arm/bin:/android-ndk/arm64/bin:/android-ndk/x86/bin | ||
|
||
WORKDIR /buildslave |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters