chore(ci): add Puppeteer-Firefox to CI (#3932)

This patch adds Puppeteer-Firefox bot running on Linux+Node8
on Cirrus CI.

References #3889
This commit is contained in:
Andrey Lushnikov 2019-02-06 14:28:02 -08:00 committed by GitHub
parent 6887ad881a
commit a762dbe96f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 5 deletions

View File

@ -3,7 +3,7 @@ env:
task: task:
matrix: matrix:
- name: node6 (linux) - name: Chromium (node6 + linux)
container: container:
dockerfile: .ci/node6/Dockerfile.linux dockerfile: .ci/node6/Dockerfile.linux
xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24 xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24
@ -12,7 +12,7 @@ task:
task: task:
matrix: matrix:
- name: node8 (linux) - name: Chromium (node8 + linux)
container: container:
dockerfile: .ci/node8/Dockerfile.linux dockerfile: .ci/node8/Dockerfile.linux
xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24 xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24
@ -22,10 +22,19 @@ task:
test_doclint_script: npm run test-doclint test_doclint_script: npm run test-doclint
test_types_script: npm run test-types test_types_script: npm run test-types
task:
matrix:
- name: Firefox (node8 + linux)
container:
dockerfile: .ci/node8/Dockerfile.linux
xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24
install_script: npm install --unsafe-perm && cd experimental/puppeteer-firefox && npm install --unsafe-perm
test_script: npm run funit
task: task:
osx_instance: osx_instance:
image: high-sierra-base image: high-sierra-base
name: node8 (macOS) name: Chromium (node8 + macOS)
env: env:
HOMEBREW_NO_AUTO_UPDATE: 1 HOMEBREW_NO_AUTO_UPDATE: 1
node_install_script: node_install_script:

View File

@ -79,7 +79,12 @@ class Launcher {
// process group, making it possible to kill child process tree with `.kill(-pid)` command. // process group, making it possible to kill child process tree with `.kill(-pid)` command.
// @see https://nodejs.org/api/child_process.html#child_process_options_detached // @see https://nodejs.org/api/child_process.html#child_process_options_detached
detached: process.platform !== 'win32', detached: process.platform !== 'win32',
stdio stdio,
// On linux Juggler ships the libstdc++ it was linked against.
env: os.platform() === 'linux' ? {
...process.env,
LD_LIBRARY_PATH: `${path.dirname(executablePath)}:${process.env.LD_LIBRARY_PATH}`,
} : process.env,
} }
); );

View File

@ -9,7 +9,7 @@
"node": ">=8.9.4" "node": ">=8.9.4"
}, },
"puppeteer": { "puppeteer": {
"firefox_revision": "d026cf7a14cb7dbe65acc4a4188c570da10a501c" "firefox_revision": "74896383109c18e133bd317b7b2959ae2376f51d"
}, },
"scripts": { "scripts": {
"install": "node install.js", "install": "node install.js",