]> source.dussan.org Git - jquery.git/commitdiff
Build: Only run browser tests in one Node version on Travis
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 3 Jan 2018 08:41:46 +0000 (09:41 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Jan 2018 08:41:46 +0000 (09:41 +0100)
Ref gh-3744
Closes gh-3894

.travis.yml
package.json

index 317c3a85441e765445529a457bd4fa926a693f80..4fa82ae7ac8b92dc0b0d5e78bec0cc16b1d7262e 100644 (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
index ba98838263d820818f9fb0c03d78cac142e9cd36..53ea4f7ebc638daf69312a4ac0f369767ea83994 100644 (file)
   "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"
   },