3 RUN apt-get update && apt-get install -y --no-install-recommends \
18 # Install dependencies for chromium browser
19 RUN apt-get install -y \
59 COPY scripts/sccache.sh /scripts/
60 RUN sh /scripts/sccache.sh
62 COPY scripts/cmake.sh /scripts/
65 COPY host-x86_64/x86_64-gnu-tools/checktools.sh /tmp/
67 RUN curl -sL https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz | tar -xJ
68 ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}"
70 # For now, we need to use `--unsafe-perm=true` to go around an issue when npm tries
71 # to create a new folder. For reference:
72 # https://github.com/puppeteer/puppeteer/issues/375
74 # We also specify the version in case we need to update it to go around cache limitations.
75 RUN npm install -g browser-ui-test@0.4.1 --unsafe-perm=true
77 ENV RUST_CONFIGURE_ARGS \
78 --build=x86_64-unknown-linux-gnu \
79 --save-toolstates=/tmp/toolstate/toolstates.json
81 ENV SCRIPT /tmp/checktools.sh ../x.py && \
82 NODE_PATH=`npm root -g` python3 ../x.py test src/test/rustdoc-gui --stage 2