-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use docker for all CI tests and images
Previously we were somewhat half-Docker, half-Travis, half apt-get, etc. This commit alters the CI infrastructure to use Docker images for each target. This should make it much easier to update the images and tweak various bits and pieces of installed software. Additionally, it's also much clearer now what's needed for each suite of tests! Some images were updated a bit (e.g. musl is now 1.1.14), but other images encountered failures when updating so they're not getting updated just yet.
- Loading branch information
1 parent
70dce05
commit 3eb4a48
Showing
20 changed files
with
267 additions
and
319 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 was deleted.
Oops, something went wrong.
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,7 @@ | ||
FROM ubuntu:14.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates \ | ||
gcc-aarch64-linux-gnu libc6-dev-arm64-cross qemu-user | ||
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \ | ||
PATH=$PATH:/rust/bin |
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,4 @@ | ||
FROM alexcrichton/rust-slave-android:2015-11-22 | ||
ENV CARGO_TARGET_ARM_LINUX_ANDROIDEABI_LINKER=arm-linux-androideabi-gcc \ | ||
PATH=$PATH:/rust/bin | ||
ENTRYPOINT ["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,7 @@ | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates \ | ||
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user | ||
ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \ | ||
PATH=$PATH:/rust/bin |
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,5 @@ | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc-multilib libc6-dev ca-certificates | ||
ENV PATH=$PATH:/rust/bin |
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,13 @@ | ||
FROM ubuntu:15.10 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
software-properties-common gcc libc6-dev qemu-user | ||
RUN add-apt-repository ppa:angelsl/mips-cross | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc-5-mips-linux-gnu libc6-dev-mips-cross | ||
|
||
ENV CARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_LINKER=mips-linux-gnu-gcc-5 \ | ||
CC_mips_unknown_linux_gnu=mips-linux-gnu-gcc-5 \ | ||
PATH=$PATH:/rust/bin |
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,6 @@ | ||
FROM mato/rumprun-toolchain-hw-x86_64 | ||
USER root | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
qemu | ||
ENV PATH=$PATH:/rust/bin |
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,13 @@ | ||
FROM alexcrichton/rust-slave-linux-cross:2016-04-15 | ||
USER root | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
qemu qemu-kvm kmod cpu-checker | ||
|
||
ENTRYPOINT ["sh"] | ||
|
||
ENV PATH=$PATH:/rust/bin \ | ||
QEMU=freebsd.qcow2 \ | ||
CAN_CROSS=1 \ | ||
CARGO_TARGET_X86_64_UNKNOWN_FREEBSD_LINKER=x86_64-unknown-freebsd10-gcc |
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,5 @@ | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev ca-certificates | ||
ENV PATH=$PATH:/rust/bin |
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,13 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc make libc6-dev git curl ca-certificates | ||
RUN curl https://www.musl-libc.org/releases/musl-1.1.14.tar.gz | \ | ||
tar xzf - && \ | ||
cd musl-1.1.14 && \ | ||
./configure --prefix=/musl-x86_64 && \ | ||
make install -j4 && \ | ||
cd .. && \ | ||
rm -rf musl-1.1.14 | ||
ENV PATH=$PATH:/musl-x86_64/bin:/rust/bin |
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,7 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev qemu qemu-kvm curl ca-certificates kmod cpu-checker | ||
ENV PATH=$PATH:/rust/bin \ | ||
QEMU=openbsd.qcow2 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
# Small script to run tests for a target (or all targets) inside all the | ||
# respective docker images. | ||
|
||
set -ex | ||
|
||
run() { | ||
echo $1 | ||
docker build -t libc ci/docker/$1 | ||
docker run \ | ||
-v `rustc --print sysroot`:/rust:ro \ | ||
-v `pwd`:/checkout:ro \ | ||
-e CARGO_TARGET_DIR=/tmp/target \ | ||
-w /checkout \ | ||
--privileged \ | ||
-it libc \ | ||
ci/run.sh $1 | ||
} | ||
|
||
if [ -z "$1" ]; then | ||
for d in `ls ci/docker/`; do | ||
run $d | ||
done | ||
else | ||
run $1 | ||
fi |
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
Oops, something went wrong.