3 ARG DEBIAN_FRONTEND=noninteractive
4 RUN apt-get update && apt-get install -y --no-install-recommends \
13 python3-pkg-resources \
22 && rm -rf /var/lib/apt/lists/*
24 RUN curl -sL https://nodejs.org/dist/v16.9.0/node-v16.9.0-linux-x64.tar.xz | tar -xJ
25 ENV PATH="/node-v16.9.0-linux-x64/bin:${PATH}"
27 # Pin its version to prevent unrelated CI failures due to future es-check versions.
28 RUN npm install es-check@6.1.1 eslint@8.6.0 -g
30 COPY scripts/sccache.sh /scripts/
31 RUN sh /scripts/sccache.sh
33 COPY host-x86_64/mingw-check/reuse-requirements.txt /tmp/
34 RUN pip3 install --no-deps --no-cache-dir --require-hashes -r /tmp/reuse-requirements.txt
36 COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
37 COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
39 ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
40 ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
41 python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu --all-targets && \
42 python3 ../x.py build --stage 0 src/tools/build-manifest && \
43 python3 ../x.py test --stage 0 src/tools/compiletest && \
44 python3 ../x.py test --stage 0 core alloc std test proc_macro && \
45 # Build both public and internal documentation.
46 RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc --stage 0 compiler && \
47 RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc --stage 0 library/test && \
48 /scripts/validate-toolstate.sh && \
49 /scripts/validate-error-codes.sh && \
51 # Runs checks to ensure that there are no ES5 issues in our JS code.
52 es-check es6 ../src/librustdoc/html/static/js/*.js && \
53 eslint -c ../src/librustdoc/html/static/.eslintrc.js ../src/librustdoc/html/static/js/*.js