chore: fix travis config (#6537)
This commit is contained in:
parent
c756fb495b
commit
e6b8c77d94
32
.travis.yml
32
.travis.yml
@ -3,9 +3,9 @@ services: xvfb
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- os: "osx"
|
- os: 'osx'
|
||||||
name: 'Unit tests: macOS/Chromium'
|
name: 'Unit tests: macOS/Chromium'
|
||||||
node_js: "10.19.0"
|
node_js: '10.19.0'
|
||||||
osx_image: xcode11.4
|
osx_image: xcode11.4
|
||||||
env:
|
env:
|
||||||
- CHROMIUM=true
|
- CHROMIUM=true
|
||||||
@ -14,11 +14,11 @@ jobs:
|
|||||||
script:
|
script:
|
||||||
- ls .local-chromium .local-firefox
|
- ls .local-chromium .local-firefox
|
||||||
- npm run tsc
|
- npm run tsc
|
||||||
- travis_retry npm run unit
|
- npm run unit
|
||||||
|
|
||||||
- os: "windows"
|
- os: 'windows'
|
||||||
name: 'Unit tests: Windows/Chromium'
|
name: 'Unit tests: Windows/Chromium'
|
||||||
node_js: "10.19.0"
|
node_js: '10.19.0'
|
||||||
env:
|
env:
|
||||||
- CHROMIUM=true
|
- CHROMIUM=true
|
||||||
before_install:
|
before_install:
|
||||||
@ -29,7 +29,7 @@ jobs:
|
|||||||
- travis_retry npm run unit
|
- travis_retry npm run unit
|
||||||
|
|
||||||
# Runs unit tests on Linux + Chromium
|
# Runs unit tests on Linux + Chromium
|
||||||
- node_js: "10.19.0"
|
- node_js: '10.19.0'
|
||||||
name: 'Unit tests [with coverage]: Linux/Chromium'
|
name: 'Unit tests [with coverage]: Linux/Chromium'
|
||||||
env:
|
env:
|
||||||
- CHROMIUM=true
|
- CHROMIUM=true
|
||||||
@ -39,35 +39,35 @@ jobs:
|
|||||||
- travis_retry npm run unit-with-coverage
|
- travis_retry npm run unit-with-coverage
|
||||||
- npm run assert-unit-coverage
|
- npm run assert-unit-coverage
|
||||||
|
|
||||||
- node_js: "12.16.3"
|
- node_js: '12.16.3'
|
||||||
name: 'Unit tests [Node 12]: Linux/Chromium'
|
name: 'Unit tests [Node 12]: Linux/Chromium'
|
||||||
env:
|
env:
|
||||||
- CHROMIUM=true
|
- CHROMIUM=true
|
||||||
before_install:
|
before_install:
|
||||||
- PUPPETEER_PRODUCT=firefox npm install
|
- PUPPETEER_PRODUCT=firefox npm install
|
||||||
script:
|
script:
|
||||||
- travis_retry npm run unit
|
- npm run unit
|
||||||
|
|
||||||
- node_js: "14.2.0"
|
- node_js: '14.2.0'
|
||||||
name: 'Unit tests [Node 14]: Linux/Chromium'
|
name: 'Unit tests [Node 14]: Linux/Chromium'
|
||||||
env:
|
env:
|
||||||
- CHROMIUM=true
|
- CHROMIUM=true
|
||||||
before_install:
|
before_install:
|
||||||
- PUPPETEER_PRODUCT=firefox npm install
|
- PUPPETEER_PRODUCT=firefox npm install
|
||||||
script:
|
script:
|
||||||
- travis_retry npm run unit
|
- npm run unit
|
||||||
|
|
||||||
- node_js: "12.16.3"
|
- node_js: '12.16.3'
|
||||||
name: 'Browser tests: Linux/Chromium'
|
name: 'Browser tests: Linux/Chromium'
|
||||||
addons:
|
addons:
|
||||||
chrome: stable
|
chrome: stable
|
||||||
env:
|
env:
|
||||||
- CHROMIUM=true
|
- CHROMIUM=true
|
||||||
script:
|
script:
|
||||||
- travis_retry npm run test-browser
|
- npm run test-browser
|
||||||
|
|
||||||
# This bot runs all the extra checks that aren't the main Puppeteer unit tests
|
# This bot runs all the extra checks that aren't the main Puppeteer unit tests
|
||||||
- node_js: "10.19.0"
|
- node_js: '10.19.0'
|
||||||
name: 'Extra tests: Linux/Chromium'
|
name: 'Extra tests: Linux/Chromium'
|
||||||
env:
|
env:
|
||||||
- CHROMIUM=true
|
- CHROMIUM=true
|
||||||
@ -79,7 +79,7 @@ jobs:
|
|||||||
|
|
||||||
# This bot runs separately as it changes package.json to test puppeteer-core
|
# 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.
|
# and we don't want that leaking into other bots and causing issues.
|
||||||
- node_js: "10.19.0"
|
- node_js: '10.19.0'
|
||||||
name: 'Test bundling and install of packages'
|
name: 'Test bundling and install of packages'
|
||||||
env:
|
env:
|
||||||
- CHROMIUM=true
|
- CHROMIUM=true
|
||||||
@ -87,14 +87,14 @@ jobs:
|
|||||||
- npm run test-install
|
- npm run test-install
|
||||||
|
|
||||||
# Runs unit tests on Linux + Firefox
|
# Runs unit tests on Linux + Firefox
|
||||||
- node_js: "10.19.0"
|
- node_js: '10.19.0'
|
||||||
name: 'Unit tests: Linux/Firefox'
|
name: 'Unit tests: Linux/Firefox'
|
||||||
env:
|
env:
|
||||||
- FIREFOX=true
|
- FIREFOX=true
|
||||||
before_install:
|
before_install:
|
||||||
- PUPPETEER_PRODUCT=firefox npm install
|
- PUPPETEER_PRODUCT=firefox npm install
|
||||||
script:
|
script:
|
||||||
- travis_retry npm run funit
|
- npm run funit
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
@ -21,8 +21,8 @@ module.exports = {
|
|||||||
require: ['./test/mocha-ts-require', './test/mocha-utils.ts'],
|
require: ['./test/mocha-ts-require', './test/mocha-utils.ts'],
|
||||||
spec: 'test/*.spec.ts',
|
spec: 'test/*.spec.ts',
|
||||||
extension: ['js', 'ts'],
|
extension: ['js', 'ts'],
|
||||||
parallel: process.env.CI && !process.env.COVERAGE,
|
|
||||||
// retry twice more, so we run each test up to 3 times if needed.
|
|
||||||
retries: process.env.CI ? 2 : 0,
|
retries: process.env.CI ? 2 : 0,
|
||||||
|
parallel: !!process.env.PARALLEL,
|
||||||
timeout: 25 * 1000,
|
timeout: 25 * 1000,
|
||||||
|
reporter: process.env.CI ? 'spec' : 'dot',
|
||||||
};
|
};
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
"jpeg-js": "^0.3.7",
|
"jpeg-js": "^0.3.7",
|
||||||
"mime": "^2.0.3",
|
"mime": "^2.0.3",
|
||||||
"minimist": "^1.2.0",
|
"minimist": "^1.2.0",
|
||||||
"mocha": "^8.1.3",
|
"mocha": "^8.2.0",
|
||||||
"ncp": "^2.0.0",
|
"ncp": "^2.0.0",
|
||||||
"pixelmatch": "^4.0.2",
|
"pixelmatch": "^4.0.2",
|
||||||
"pngjs": "^5.0.0",
|
"pngjs": "^5.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user