From 1622be86968588283b19ddf67583b74d0147d363 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Fri, 1 Mar 2024 02:06:09 +0200 Subject: [PATCH] Install browsers in the buildbot container and set CHROME_BIN for npm test --- .buildbot/node/Dockerfile | 3 ++- .buildbot/node/test.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.buildbot/node/Dockerfile b/.buildbot/node/Dockerfile index 24e1f58..84a2a2f 100644 --- a/.buildbot/node/Dockerfile +++ b/.buildbot/node/Dockerfile @@ -1,7 +1,8 @@ FROM node:18-bullseye RUN apt-get update -RUN apt-get install -yq --no-install-suggests --no-install-recommends xauth xvfb +RUN apt-get install -yq --no-install-suggests --no-install-recommends \ + xauth xvfb chromium firefox-esr WORKDIR /app COPY package*.json binding.gyp *.cc ./ diff --git a/.buildbot/node/test.sh b/.buildbot/node/test.sh index b41801e..2ae9d71 100755 --- a/.buildbot/node/test.sh +++ b/.buildbot/node/test.sh @@ -1,3 +1,3 @@ #!/bin/sh -npm test +CHROME_BIN=/usr/bin/chromium npm test