diff options
author | Marco A L Barbosa <malbarbo@gmail.com> | 2017-10-27 11:06:14 -0200 |
---|---|---|
committer | Marco A L Barbosa <malbarbo@gmail.com> | 2017-10-27 11:06:14 -0200 |
commit | 0ee3935ed3375f61db7e47e3d5134765714f563e (patch) | |
tree | 578561413877715cbfbd85e244f392509f1118fd /ci | |
parent | c9aba5f9ad63632cf07acb79905b1e7becfff036 (diff) | |
download | rust-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/Dockerfile | 5 | ||||
-rwxr-xr-x | ci/run.sh | 8 |
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 @@ -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 |