Skip to content

Commit

Permalink
Rollup merge of rust-lang#82181 - GuillaumeGomez:es5-checks-ci, r=Mar…
Browse files Browse the repository at this point in the history
…k-Simulacrum

Add check for ES5 in CI

Follow-up of rust-lang#82145.

r? ``@Mark-Simulacrum``
  • Loading branch information
JohnTitor authored Feb 21, 2021
2 parents df078f0 + fcf6e6e commit 5955818
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ci/docker/host-x86_64/mingw-check/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ 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
RUN npm install es-check -g

COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh

Expand All @@ -29,4 +34,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

0 comments on commit 5955818

Please sign in to comment.