Skip to content

Commit 5358498

Browse files
Update install of browser-ui-test package in CI
1 parent 52f795b commit 5358498

File tree

1 file changed

+7
-5
lines changed
  • src/ci/docker/host-x86_64/x86_64-gnu-tools

1 file changed

+7
-5
lines changed

src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile

+7-5
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,16 @@ COPY host-x86_64/x86_64-gnu-tools/checktools.sh /tmp/
6666
RUN curl -sL https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz | tar -xJ
6767
ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}"
6868

69+
# For now, we need to use `--unsafe-perm=true` to go around an issue when npm tries
70+
# to create a new folder. For reference:
71+
# https://github.com/puppeteer/puppeteer/issues/375
72+
#
73+
# We also specify the version in case we need to update it to go around cache limitations.
74+
RUN npm install -g [email protected] --unsafe-perm=true
75+
6976
ENV RUST_CONFIGURE_ARGS \
7077
--build=x86_64-unknown-linux-gnu \
7178
--save-toolstates=/tmp/toolstate/toolstates.json
7279

73-
# Install required dependencies from browser-UI-test framework
74-
# For now, we need to use `--unsafe-perm=true` to go around an issue when npm tries
75-
# to create a new folder. For reference:
76-
# https://github.com/puppeteer/puppeteer/issues/375
7780
ENV SCRIPT /tmp/checktools.sh ../x.py && \
78-
npm install -g browser-ui-test --unsafe-perm=true && \
7981
NODE_PATH=`npm root -g` python3 ../x.py test src/test/rustdoc-gui --stage 2

0 commit comments

Comments
 (0)