summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorMarco A L Barbosa <malbarbo@gmail.com>2017-10-27 11:06:14 -0200
committerMarco A L Barbosa <malbarbo@gmail.com>2017-10-27 11:06:14 -0200
commit0ee3935ed3375f61db7e47e3d5134765714f563e (patch)
tree578561413877715cbfbd85e244f392509f1118fd /ci
parentc9aba5f9ad63632cf07acb79905b1e7becfff036 (diff)
downloadrust-libc-0ee3935ed3375f61db7e47e3d5134765714f563e.tar.gz
Add x86_64-unknown-linux-gnux32 docker image
Diffstat (limited to 'ci')
-rw-r--r--ci/docker/x86_64-unknown-linux-gnux32/Dockerfile5
-rwxr-xr-xci/run.sh8
2 files changed, 12 insertions, 1 deletions
diff --git a/ci/docker/x86_64-unknown-linux-gnux32/Dockerfile b/ci/docker/x86_64-unknown-linux-gnux32/Dockerfile
new file mode 100644
index 0000000000..1af41343e2
--- /dev/null
+++ b/ci/docker/x86_64-unknown-linux-gnux32/Dockerfile
@@ -0,0 +1,5 @@
+FROM ubuntu:17.04
+RUN apt-get update
+RUN apt-get install -y --no-install-recommends \
+ gcc-multilib libc6-dev ca-certificates
+ENV PATH=$PATH:/rust/bin
diff --git a/ci/run.sh b/ci/run.sh
index 51a2c68714..65d716e956 100755
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -68,4 +68,10 @@ if [ "$QEMU" != "" ]; then
exec grep "^PASSED .* tests" $CARGO_TARGET_DIR/out.log
fi
-exec cargo test --manifest-path libc-test/Cargo.toml --target $TARGET
+# FIXME: x86_64-unknown-linux-gnux32 fail to compile wihout --release
+opt=
+if [ "$TARGET" = "x86_64-unknown-linux-gnux32" ]; then
+ opt="--release"
+fi
+
+exec cargo test $opt --manifest-path libc-test/Cargo.toml --target $TARGET