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