2017-06-21 00:04:24 +00:00
|
|
|
language: node_js
|
2020-04-23 08:29:37 +00:00
|
|
|
services: xvfb
|
|
|
|
|
2017-08-24 19:20:05 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2020-10-22 13:37:28 +00:00
|
|
|
- os: 'osx'
|
2020-04-27 10:04:09 +00:00
|
|
|
name: 'Unit tests: macOS/Chromium'
|
2020-10-22 13:37:28 +00:00
|
|
|
node_js: '10.19.0'
|
2020-05-21 14:36:59 +00:00
|
|
|
osx_image: xcode11.4
|
2020-04-22 14:44:24 +00:00
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
before_install:
|
|
|
|
- PUPPETEER_PRODUCT=firefox npm install
|
|
|
|
script:
|
|
|
|
- ls .local-chromium .local-firefox
|
|
|
|
- npm run tsc
|
2020-10-22 13:37:28 +00:00
|
|
|
- npm run unit
|
2020-04-23 08:29:37 +00:00
|
|
|
|
2020-10-22 13:37:28 +00:00
|
|
|
- os: 'windows'
|
2020-04-27 10:04:09 +00:00
|
|
|
name: 'Unit tests: Windows/Chromium'
|
2020-10-22 13:37:28 +00:00
|
|
|
node_js: '10.19.0'
|
2020-04-17 13:27:50 +00:00
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
before_install:
|
|
|
|
- PUPPETEER_PRODUCT=firefox npm install
|
|
|
|
script:
|
|
|
|
- ls .local-chromium .local-firefox
|
|
|
|
- npm run tsc
|
2020-04-21 09:21:45 +00:00
|
|
|
- travis_retry npm run unit
|
2020-04-23 08:29:37 +00:00
|
|
|
|
2020-10-26 11:02:05 +00:00
|
|
|
# Node <10.17's fs.promises module was experimental and doesn't behave as
|
|
|
|
# expected. This problem was fixed in Node 10.19, but we run the unit tests
|
|
|
|
# through on 10.15 to make sure we don't cause any regressions when using
|
|
|
|
# fs.promises. See https://github.com/puppeteer/puppeteer/issues/6548 for an
|
|
|
|
# example.
|
|
|
|
- node_js: '10.15.0'
|
|
|
|
name: 'Node 10.15 Unit tests: Linux/Chromium'
|
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
before_install:
|
|
|
|
- PUPPETEER_PRODUCT=firefox npm install
|
|
|
|
script:
|
|
|
|
- npm run unit
|
|
|
|
|
2020-10-22 13:37:28 +00:00
|
|
|
- node_js: '10.19.0'
|
2020-04-30 12:00:41 +00:00
|
|
|
name: 'Unit tests [with coverage]: Linux/Chromium'
|
2020-04-03 11:22:02 +00:00
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
2020-04-08 09:38:07 +00:00
|
|
|
before_install:
|
2020-04-15 11:30:42 +00:00
|
|
|
- PUPPETEER_PRODUCT=firefox npm install
|
2020-04-22 14:33:36 +00:00
|
|
|
script:
|
2020-04-30 12:00:41 +00:00
|
|
|
- travis_retry npm run unit-with-coverage
|
|
|
|
- npm run assert-unit-coverage
|
2020-04-27 10:04:09 +00:00
|
|
|
|
2020-10-22 13:37:28 +00:00
|
|
|
- node_js: '12.16.3'
|
2020-05-07 09:24:03 +00:00
|
|
|
name: 'Unit tests [Node 12]: Linux/Chromium'
|
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
before_install:
|
|
|
|
- PUPPETEER_PRODUCT=firefox npm install
|
|
|
|
script:
|
2020-10-22 13:37:28 +00:00
|
|
|
- npm run unit
|
2020-05-07 09:24:03 +00:00
|
|
|
|
2020-10-22 13:37:28 +00:00
|
|
|
- node_js: '14.2.0'
|
2020-05-07 09:24:03 +00:00
|
|
|
name: 'Unit tests [Node 14]: Linux/Chromium'
|
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
before_install:
|
|
|
|
- PUPPETEER_PRODUCT=firefox npm install
|
|
|
|
script:
|
2020-10-22 13:37:28 +00:00
|
|
|
- npm run unit
|
2020-05-07 09:24:03 +00:00
|
|
|
|
2020-10-22 13:37:28 +00:00
|
|
|
- node_js: '12.16.3'
|
2020-07-22 11:14:35 +00:00
|
|
|
name: 'Browser tests: Linux/Chromium'
|
2020-10-19 08:57:15 +00:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
2020-07-22 11:14:35 +00:00
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
script:
|
2020-10-22 13:37:28 +00:00
|
|
|
- npm run test-browser
|
2020-07-22 11:14:35 +00:00
|
|
|
|
2020-04-27 10:04:09 +00:00
|
|
|
# This bot runs all the extra checks that aren't the main Puppeteer unit tests
|
2020-10-22 13:37:28 +00:00
|
|
|
- node_js: '10.19.0'
|
2020-04-27 10:04:09 +00:00
|
|
|
name: 'Extra tests: Linux/Chromium'
|
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
script:
|
|
|
|
- npm run lint
|
2020-10-14 10:44:40 +00:00
|
|
|
# Ensure that we can generate the new docs without erroring
|
|
|
|
- npm run generate-docs
|
2020-07-10 10:51:52 +00:00
|
|
|
- npm run ensure-correct-devtools-protocol-revision
|
2020-04-27 10:04:09 +00:00
|
|
|
|
2020-06-29 15:13:24 +00:00
|
|
|
# This bot runs separately as it changes package.json to test puppeteer-core
|
|
|
|
# and we don't want that leaking into other bots and causing issues.
|
2020-10-22 13:37:28 +00:00
|
|
|
- node_js: '10.19.0'
|
2020-06-29 15:13:24 +00:00
|
|
|
name: 'Test bundling and install of packages'
|
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
script:
|
|
|
|
- npm run test-install
|
|
|
|
|
2020-04-27 10:04:09 +00:00
|
|
|
# Runs unit tests on Linux + Firefox
|
2020-10-22 13:37:28 +00:00
|
|
|
- node_js: '10.19.0'
|
2020-04-27 10:04:09 +00:00
|
|
|
name: 'Unit tests: Linux/Firefox'
|
2020-04-08 10:18:29 +00:00
|
|
|
env:
|
|
|
|
- FIREFOX=true
|
|
|
|
before_install:
|
2020-04-15 11:30:42 +00:00
|
|
|
- PUPPETEER_PRODUCT=firefox npm install
|
2020-04-08 10:18:29 +00:00
|
|
|
script:
|
2020-10-22 13:37:28 +00:00
|
|
|
- npm run funit
|
2020-04-23 08:29:37 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|