Build: Only run browser tests in one Node version on Travis

Ref gh-3744
Closes gh-3894
This commit is contained in:
Michał Gołębiowski-Owczarek 2018-01-03 09:41:46 +01:00 committed by GitHub
parent ecd8ddea33
commit 3c0f2cfb05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -7,3 +7,12 @@ node_js:
- "9"
addons:
chrome: stable
env:
- NPM_SCRIPT=test:browserless
matrix:
include:
# Run browser tests only on one Node.js version to save time.
- node_js: "8"
env: NPM_SCRIPT=test:browser
script:
- npm run $NPM_SCRIPT

View File

@ -68,8 +68,10 @@
"scripts": {
"build": "npm install && grunt",
"start": "grunt watch",
"test": "grunt && grunt test:slow karma:main",
"jenkins": "grunt && grunt test:slow",
"test:browserless": "grunt && grunt test:slow",
"test:browser": "grunt && grunt karma:main",
"test": "grunt && grunt test:slow && grunt karma:main",
"jenkins": "npm run test:browserless",
"precommit": "grunt lint:newer qunit_fixture",
"commitmsg": "node node_modules/commitplease"
},