]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/host-x86_64/mingw-check/Dockerfile
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / ci / docker / host-x86_64 / mingw-check / Dockerfile
CommitLineData
f035d41b 1FROM ubuntu:18.04
83c7162d
XL
2
3RUN apt-get update && apt-get install -y --no-install-recommends \
4 g++ \
5 make \
1b1a35ee 6 ninja-build \
83c7162d
XL
7 file \
8 curl \
9 ca-certificates \
ba9703b0 10 python3 \
83c7162d
XL
11 git \
12 cmake \
13 sudo \
14 gdb \
15 xz-utils \
16 libssl-dev \
17 pkg-config \
18 mingw-w64
19
6a06907d
XL
20RUN curl -sL https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz | tar -xJ
21ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}"
22# Install es-check
23# Pin its version to prevent unrelated CI failures due to future es-check versions.
24RUN npm install es-check@5.2.3 -g
17df50a5 25RUN npm install eslint@7.20.0 -g
6a06907d 26
83c7162d
XL
27COPY scripts/sccache.sh /scripts/
28RUN sh /scripts/sccache.sh
29
f035d41b 30COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
94222f64 31COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
60c5eb7d 32
83c7162d 33ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
3dfed10e 34ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
29967ef6 35 python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu --all-targets && \
ba9703b0
XL
36 python3 ../x.py build --stage 0 src/tools/build-manifest && \
37 python3 ../x.py test --stage 0 src/tools/compiletest && \
3dfed10e 38 python3 ../x.py test --stage 2 src/tools/tidy && \
17df50a5 39 python3 ../x.py doc --stage 0 library/test && \
6a06907d 40 /scripts/validate-toolstate.sh && \
94222f64 41 /scripts/validate-error-codes.sh && \
6a06907d 42 # Runs checks to ensure that there are no ES5 issues in our JS code.
136023e0
XL
43 es-check es5 ../src/librustdoc/html/static/js/*.js && \
44 eslint ../src/librustdoc/html/static/js/*.js