summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-07-07 14:18:19 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-07-07 14:19:06 -0700
commit7d74c0993c044e40aa53c65c45ba7b4735d4f398 (patch)
tree86f74cd8e7341e497c3dbc0aaed7c225b770d4c4 /ci
parente8140b86ab99096410897a0a4ebe6efe1b593261 (diff)
downloadrust-libc-7d74c0993c044e40aa53c65c45ba7b4735d4f398.tar.gz
Clean up CI configuration and add s390x
We can't test s390x because qemu segfaults but we can at least verify that it compiles. Closes #650
Diffstat (limited to 'ci')
-rw-r--r--ci/docker/s390x-unknown-linux-gnu/Dockerfile9
-rwxr-xr-xci/run.sh5
2 files changed, 14 insertions, 0 deletions
diff --git a/ci/docker/s390x-unknown-linux-gnu/Dockerfile b/ci/docker/s390x-unknown-linux-gnu/Dockerfile
new file mode 100644
index 0000000000..cbcfdf3592
--- /dev/null
+++ b/ci/docker/s390x-unknown-linux-gnu/Dockerfile
@@ -0,0 +1,9 @@
+FROM ubuntu:17.04
+
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ gcc libc6-dev qemu-user ca-certificates \
+ gcc-s390x-linux-gnu libc6-dev-s390x-cross
+
+ENV CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_LINKER=s390x-linux-gnu-gcc \
+ CC_s390x_unknown_linux_gnu=s390x-linux-gnu-gcc \
+ PATH=$PATH:/rust/bin
diff --git a/ci/run.sh b/ci/run.sh
index 3ddc7b3954..54e2129f8d 100755
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -168,6 +168,11 @@ case "$TARGET" in
qemu-aarch64 -L /usr/aarch64-linux-gnu/ $CARGO_TARGET_DIR/$TARGET/debug/libc-test
;;
+ s390x-unknown-linux-gnu)
+ # TODO: in theory we should execute this, but qemu segfaults immediately :(
+ # qemu-s390x -L /usr/s390x-linux-gnu/ $CARGO_TARGET_DIR/$TARGET/debug/libc-test
+ ;;
+
*-rumprun-netbsd)
rumprun-bake hw_virtio /tmp/libc-test.img $CARGO_TARGET_DIR/$TARGET/debug/libc-test
qemu-system-x86_64 -nographic -vga none -m 64 \