]> git.proxmox.com Git - rustc.git/blobdiff - src/ci/docker/host-x86_64/mingw-check/Dockerfile
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / ci / docker / host-x86_64 / mingw-check / Dockerfile
index b2aa5844e476671dd329b274dc555fcaa6a38195..a9398649cf056c0449868794354957091d74dd5a 100644 (file)
@@ -17,6 +17,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
   pkg-config \
   mingw-w64
 
+RUN curl -sL https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz | tar -xJ
+ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}"
+# Install es-check
+# Pin its version to prevent unrelated CI failures due to future es-check versions.
+RUN npm install es-check@5.2.3 -g
+
 COPY scripts/sccache.sh /scripts/
 RUN sh /scripts/sccache.sh
 
@@ -29,4 +35,6 @@ ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
            python3 ../x.py test --stage 0 src/tools/compiletest && \
            python3 ../x.py test --stage 2 src/tools/tidy && \
            python3 ../x.py doc --stage 0 library/std && \
-           /scripts/validate-toolstate.sh
+           /scripts/validate-toolstate.sh && \
+           # Runs checks to ensure that there are no ES5 issues in our JS code.
+           es-check es5 ../src/librustdoc/html/static/*.js