diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-02-15 10:18:26 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-02-17 09:53:33 +0100 |
| commit | fcf6e6e80d723c7ee6d8734f944fcfb798be427b (patch) | |
| tree | 02fc77ed6cb795b88c532c00cd34831be7f0f3a2 | |
| parent | ee88f46bb5e27c4d9f30326e69ff2298dcbeecb1 (diff) | |
| download | rust-fcf6e6e80d723c7ee6d8734f944fcfb798be427b.tar.gz rust-fcf6e6e80d723c7ee6d8734f944fcfb798be427b.zip | |
Add check for ES5 in CI
| -rw-r--r-- | src/ci/docker/host-x86_64/mingw-check/Dockerfile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ci/docker/host-x86_64/mingw-check/Dockerfile b/src/ci/docker/host-x86_64/mingw-check/Dockerfile index b2aa5844e47..cb50e0c8f74 100644 --- a/src/ci/docker/host-x86_64/mingw-check/Dockerfile +++ b/src/ci/docker/host-x86_64/mingw-check/Dockerfile @@ -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 @@ -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 |
