Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: split out CI into unit tests + extra checks #5749

Merged
merged 5 commits into from Apr 27, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 20 additions & 2 deletions .travis.yml
Expand Up @@ -3,8 +3,8 @@ services: xvfb

jobs:
include:

- os: "osx"
name: 'Unit tests: macOS/Chromium'
node_js: "10.19.0"
env:
- CHROMIUM=true
Expand All @@ -16,6 +16,8 @@ jobs:
- npm run unit

- os: "windows"
name: 'Unit tests: Windows/Chromium'
node_js: "10.19.0"
mathiasbynens marked this conversation as resolved.
Show resolved Hide resolved
node_js: "10.19.0"
env:
- CHROMIUM=true
Expand All @@ -26,15 +28,31 @@ jobs:
- npm run tsc
- travis_retry npm run unit

# Runs unit tests on Linux + Chromium
- node_js: "10.19.0"
name: 'Unit tests: Linux/Chromium'
env:
- CHROMIUM=true
before_install:
- PUPPETEER_PRODUCT=firefox npm install
script:
- npm run test-install
- travis/chromium.sh
- 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
mathiasbynens marked this conversation as resolved.
Show resolved Hide resolved
script:
- npm run test-install
- npm run lint
- npm run test-doclint
- npm run test-types

# Runs unit tests on Linux + Firefox
- node_js: "10.19.0"
name: 'Unit tests: Linux/Firefox'
env:
- FIREFOX=true
before_install:
Expand Down