Update install of browser-ui-test package in CI

This commit is contained in:
Guillaume Gomez 2021-05-15 17:12:09 +02:00
parent 52f795b772
commit 5358498b50

View file

@ -66,14 +66,16 @@ COPY host-x86_64/x86_64-gnu-tools/checktools.sh /tmp/
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}"
# For now, we need to use `--unsafe-perm=true` to go around an issue when npm tries
# to create a new folder. For reference:
# https://github.com/puppeteer/puppeteer/issues/375
#
# We also specify the version in case we need to update it to go around cache limitations.
RUN npm install -g browser-ui-test@0.2.12 --unsafe-perm=true
ENV RUST_CONFIGURE_ARGS \
--build=x86_64-unknown-linux-gnu \
--save-toolstates=/tmp/toolstate/toolstates.json
# Install required dependencies from browser-UI-test framework
# For now, we need to use `--unsafe-perm=true` to go around an issue when npm tries
# to create a new folder. For reference:
# https://github.com/puppeteer/puppeteer/issues/375
ENV SCRIPT /tmp/checktools.sh ../x.py && \
npm install -g browser-ui-test --unsafe-perm=true && \
NODE_PATH=`npm root -g` python3 ../x.py test src/test/rustdoc-gui --stage 2