Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: tidy up and de-duplicate Travis CI config (#5716)
- Loading branch information
Showing
2 changed files
with
19 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,46 @@ | ||
language: node_js | ||
os: linux | ||
dist: trusty | ||
addons: | ||
apt: | ||
packages: | ||
# This is required to run new chrome on old trusty | ||
- libnss3 | ||
# Needed for realpath which we use in npm run test-install | ||
- realpath | ||
notifications: | ||
email: false | ||
cache: | ||
directories: | ||
- node_modules | ||
services: xvfb | ||
|
||
jobs: | ||
include: | ||
|
||
- os: "osx" | ||
node_js: "10.19.0" | ||
env: | ||
- CHROMIUM=true | ||
before_install: | ||
# populate .local-firefox for launcher tests | ||
- PUPPETEER_PRODUCT=firefox npm install | ||
script: | ||
- ls .local-chromium .local-firefox | ||
- npm run tsc | ||
- npm run unit | ||
|
||
- os: "windows" | ||
node_js: "10.19.0" | ||
env: | ||
- CHROMIUM=true | ||
before_install: | ||
# populate .local-firefox for launcher tests | ||
- PUPPETEER_PRODUCT=firefox npm install | ||
script: | ||
- ls .local-chromium .local-firefox | ||
- npm run tsc | ||
- travis_retry npm run unit | ||
|
||
- node_js: "10.19.0" | ||
dist: trusty | ||
env: | ||
- CHROMIUM=true | ||
before_install: | ||
- "export DISPLAY=:99.0" | ||
- "sh -e /etc/init.d/xvfb start" | ||
# populate .local-firefox for launcher tests | ||
- PUPPETEER_PRODUCT=firefox npm install | ||
script: | ||
- npm run test-install | ||
- travis/chromium.sh | ||
- node_js: "10.19.0" | ||
dist: trusty | ||
env: | ||
- FIREFOX=true | ||
before_install: | ||
- "export DISPLAY=:99.0" | ||
- "sh -e /etc/init.d/xvfb start" | ||
# install step will add .local-chromium for launcher tests | ||
- PUPPETEER_PRODUCT=firefox npm install | ||
script: | ||
- "npm run funit" | ||
- npm run funit | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters