mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
c5a72e9887
* feat: Set which browser to launch via PUPPETEER_PRODUCT This change introduces a PUPPETEER_PRODUCT environment variable as a first step toward using Puppeteer with many different browsers. Setting PUPPETEER_PRODUCT=firefox, for example, enables Firefox-specific Launcher settings. The state is also exposed as `puppeteer.product` in the API to support adding other product-specific behaviour as needed. The bulk of the change is a refactoring in Launcher to decouple generic browser start-up from product-specific configuration. Respecting the puppeteer-core restriction for PUPPETEER_ environment variables, lazily instantiate the Launcher based on a `product` Puppeteer.launch option, if available. * test: Distinguish Juggler unit tests from Firefox The funit script is renamed to fjunit (j for Juggler, which is used only by the experimental puppeteer-firefox package. In contrast, the funit script now refers to running Puppeteer unit tests against the main puppeteer package with Firefox. To do so with Firefox Nightly, run: `BINARY=path/to/firefox npm run funit` A number of changes in this patch make it easier to run Puppeteer unit tests in Mozilla's CI.
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
env:
|
|
DISPLAY: :99.0
|
|
FLAKINESS_DASHBOARD_PASSWORD: ENCRYPTED[b3e207db5d153b543f219d3c3b9123d8321834b783b9e45ac7d380e026ab3a56398bde51b521ac5859e7e45cb95d0992]
|
|
FLAKINESS_DASHBOARD_NAME: Cirrus ${CIRRUS_TASK_NAME}
|
|
FLAKINESS_DASHBOARD_BUILD_URL: https://cirrus-ci.com/task/${CIRRUS_TASK_ID}
|
|
|
|
task:
|
|
matrix:
|
|
- name: Chromium (node8 + linux)
|
|
container:
|
|
dockerfile: .ci/node8/Dockerfile.linux
|
|
- name: Chromium (node10 + linux)
|
|
container:
|
|
dockerfile: .ci/node10/Dockerfile.linux
|
|
- name: Chromium (node12 + linux)
|
|
container:
|
|
dockerfile: .ci/node12/Dockerfile.linux
|
|
xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24
|
|
install_script: npm install --unsafe-perm
|
|
lint_script: npm run lint
|
|
coverage_script: npm run coverage
|
|
test_doclint_script: npm run test-doclint
|
|
test_types_script: npm run test-types
|
|
|
|
task:
|
|
matrix:
|
|
- name: Firefox Juggler (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 fjunit
|
|
|
|
task:
|
|
osx_instance:
|
|
image: high-sierra-base
|
|
name: Chromium (node8 + macOS)
|
|
env:
|
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
|
node_install_script:
|
|
- brew install node@8
|
|
- brew link --force node@8
|
|
install_script: npm install --unsafe-perm
|
|
lint_script: npm run lint
|
|
coverage_script: npm run coverage
|
|
test_doclint_script: npm run test-doclint
|
|
test_types_script: npm run test-types
|