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"
|
|
|
|
env:
|
|
|
|
- CHROMIUM=true
|
|
|
|
before_install:
|
|
|
|
- PUPPETEER_PRODUCT=firefox npm install
|
|
|
|
script:
|
|
|
|
- ls .local-chromium .local-firefox
|
|
|
|
- npm run tsc
|
|
|
|
- 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-27 10:04:09 +00:00
|
|
|
name: 'Unit tests: 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-27 10:04:09 +00:00
|
|
|
- npm run coverage
|
|
|
|
|
|
|
|
# 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:
|
2020-04-28 12:58:42 +00:00
|
|
|
- npm run compare-protocol-d-ts
|
2020-04-27 10:04:09 +00:00
|
|
|
- npm run test-install
|
|
|
|
- npm run lint
|
|
|
|
- npm run test-doclint
|
|
|
|
- npm run test-types
|
|
|
|
|
|
|
|
# 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-23 08:29:37 +00:00
|
|
|
- npm run funit
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|