2020-07-03 18:27:46 +03:00
|
|
|
FROM ubuntu:18.04
|
2018-04-11 09:46:58 -06:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
g++ \
|
|
|
|
make \
|
2020-07-29 12:22:17 -07:00
|
|
|
ninja-build \
|
2018-04-11 09:46:58 -06:00
|
|
|
file \
|
|
|
|
curl \
|
|
|
|
ca-certificates \
|
2019-11-21 13:57:40 +01:00
|
|
|
python3 \
|
2018-04-11 09:46:58 -06:00
|
|
|
git \
|
|
|
|
cmake \
|
|
|
|
sudo \
|
|
|
|
gdb \
|
|
|
|
xz-utils \
|
|
|
|
libssl-dev \
|
|
|
|
pkg-config \
|
|
|
|
mingw-w64
|
|
|
|
|
2022-01-02 09:46:59 -05:00
|
|
|
RUN curl -sL https://nodejs.org/dist/v16.9.0/node-v16.9.0-linux-x64.tar.xz | tar -xJ
|
|
|
|
ENV PATH="/node-v16.9.0-linux-x64/bin:${PATH}"
|
2021-02-15 10:18:26 +01:00
|
|
|
# Install es-check
|
2021-03-04 15:03:01 +09:00
|
|
|
# Pin its version to prevent unrelated CI failures due to future es-check versions.
|
2022-01-02 09:46:59 -05:00
|
|
|
RUN npm install es-check@6.1.1 -g
|
|
|
|
RUN npm install eslint@8.6.0 -g
|
2021-02-15 10:18:26 +01:00
|
|
|
|
2018-04-11 09:46:58 -06:00
|
|
|
COPY scripts/sccache.sh /scripts/
|
|
|
|
RUN sh /scripts/sccache.sh
|
|
|
|
|
2020-06-23 11:50:48 +02:00
|
|
|
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
|
2021-06-28 17:55:01 +02:00
|
|
|
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
|
2019-10-31 16:56:11 +01:00
|
|
|
|
2018-05-04 06:30:17 +02:00
|
|
|
ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
|
2020-07-13 22:28:26 -04:00
|
|
|
ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
|
2020-10-02 19:53:05 -04:00
|
|
|
python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu --all-targets && \
|
2019-11-21 13:57:40 +01:00
|
|
|
python3 ../x.py build --stage 0 src/tools/build-manifest && \
|
|
|
|
python3 ../x.py test --stage 0 src/tools/compiletest && \
|
2020-07-13 22:28:26 -04:00
|
|
|
python3 ../x.py test --stage 2 src/tools/tidy && \
|
2021-05-11 15:51:25 +02:00
|
|
|
python3 ../x.py doc --stage 0 library/test && \
|
2021-02-15 10:18:26 +01:00
|
|
|
/scripts/validate-toolstate.sh && \
|
2021-06-28 17:55:01 +02:00
|
|
|
/scripts/validate-error-codes.sh && \
|
2021-02-15 10:18:26 +01:00
|
|
|
# Runs checks to ensure that there are no ES5 issues in our JS code.
|
2022-01-02 09:46:59 -05:00
|
|
|
es-check es6 ../src/librustdoc/html/static/js/*.js && \
|
2022-05-07 11:47:30 +08:00
|
|
|
eslint -c ../src/librustdoc/html/static/.eslintrc.js ../src/librustdoc/html/static/js/*.js
|