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-04-22 14:44:24 +00:00
|
|
|
- os: "osx"
|
2020-04-27 10:04:09 +00:00
|
|
|
name: 'Unit tests: macOS/Chromium'
|
2020-04-22 14:44:24 +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-04-30 11:38:58 +00:00
|
|
|
- travis_retry npm run unit
|
2020-04-23 08:29:37 +00:00
|
|
|
|
2020-04-17 13:27:50 +00:00
|
|
|
- os: "windows"
|
2020-04-27 10:04:09 +00:00
|
|
|
name: 'Unit tests: Windows/Chromium'
|
2020-04-17 13:27:50 +00:00
|
|
|
node_js: "10.19.0"
|
|
|
|
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-04-27 10:04:09 +00:00
|
|
|
# Runs unit tests on Linux + Chromium
|
2020-04-08 09:38:07 +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-05-07 09:24:03 +00:00
|
|
|
- node_js: "12.16.3"
|
|
|
|
name: 'Unit tests [Node 12]: Linux/Chromium'
|
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
before_install:
|
|
|
|
- PUPPETEER_PRODUCT=firefox npm install
|
|
|
|
script:
|
|
|
|
- travis_retry npm run unit
|
|
|
|
|
|
|
|
- node_js: "14.2.0"
|
|
|
|
name: 'Unit tests [Node 14]: Linux/Chromium'
|
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
before_install:
|
|
|
|
- PUPPETEER_PRODUCT=firefox npm install
|
|
|
|
script:
|
|
|
|
- travis_retry npm run unit
|
|
|
|
|
2020-04-27 10:04:09 +00:00
|
|
|
# This bot runs all the extra checks that aren't the main Puppeteer unit tests
|
|
|
|
- node_js: "10.19.0"
|
|
|
|
name: 'Extra tests: Linux/Chromium'
|
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
script:
|
|
|
|
- npm run lint
|
2020-06-11 08:48:37 +00:00
|
|
|
- npm run ensure-new-docs-up-to-date
|
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.
|
|
|
|
- node_js: "10.19.0"
|
|
|
|
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-04-08 10:18:29 +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-04-30 11:38:58 +00:00
|
|
|
- travis_retry npm run funit
|
2020-04-23 08:29:37 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|