]> git.lizzy.rs Git - rust.git/commitdiff
Add check builder for Windows to Travis
authorMark Simulacrum <mark.simulacrum@gmail.com>
Wed, 11 Apr 2018 15:46:58 +0000 (09:46 -0600)
committerMark Simulacrum <mark.simulacrum@gmail.com>
Thu, 12 Apr 2018 17:09:31 +0000 (11:09 -0600)
.travis.yml
src/ci/docker/mingw-check/Dockerfile [new file with mode: 0644]

index f36ad67b111033ba47ae675212622fbc20ad6c31..63831cd5961222469929865caf8fdd6933b10668 100644 (file)
@@ -176,6 +176,8 @@ matrix:
       if: branch = auto
     - env: IMAGE=x86_64-gnu-distcheck
       if: branch = auto
+    - env: IMAGE=mingw-check
+      if: type = pull_request OR branch = auto
 
     - stage: publish toolstate
       if: branch = master AND type = push
diff --git a/src/ci/docker/mingw-check/Dockerfile b/src/ci/docker/mingw-check/Dockerfile
new file mode 100644 (file)
index 0000000..ae46410
--- /dev/null
@@ -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