about summary refs log tree commit diff
path: root/src/ci/docker
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-04-14 15:21:39 +0800
committerkennytm <kennytm@gmail.com>2018-04-14 15:21:39 +0800
commit642bcc488b4203656a7f6ac6a7c4fc5d7e901406 (patch)
tree755e196c48e561042ecb146b47d996ffe7c8b178 /src/ci/docker
parent95b7e6fe92b925ddde0656d334862d225a2fdb77 (diff)
parentde345332b50a4bce2e56d95b5478439c9501a14b (diff)
downloadrust-642bcc488b4203656a7f6ac6a7c4fc5d7e901406.tar.gz
rust-642bcc488b4203656a7f6ac6a7c4fc5d7e901406.zip
Rollup merge of #49866 - Mark-Simulacrum:pr-travis-windows, r=alexcrichton
Cross-compile builder to Windows for PRs on Travis

I chose a completely arbitrary windows target here (I have no idea what's best, we could do multiple -- they are relatively fast).
Diffstat (limited to 'src/ci/docker')
-rw-r--r--src/ci/docker/mingw-check/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ci/docker/mingw-check/Dockerfile b/src/ci/docker/mingw-check/Dockerfile
new file mode 100644
index 00000000000..ae4641009cf
--- /dev/null
+++ b/src/ci/docker/mingw-check/Dockerfile
@@ -0,0 +1,22 @@
+FROM ubuntu:16.04
+
+RUN apt-get update && apt-get install -y --no-install-recommends \
+  g++ \
+  make \
+  file \
+  curl \
+  ca-certificates \
+  python2.7 \
+  git \
+  cmake \
+  sudo \
+  gdb \
+  xz-utils \
+  libssl-dev \
+  pkg-config \
+  mingw-w64
+
+COPY scripts/sccache.sh /scripts/
+RUN sh /scripts/sccache.sh
+
+ENV SCRIPT python2.7 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu