]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
chore: move browserstack tests to its own travis job
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 24 Mar 2018 23:41:24 +0000 (00:41 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 24 Mar 2018 23:41:24 +0000 (00:41 +0100)
Prevent browserstack tests to be started in all Travis jobs and start it only in its dedicated job.

.travis.yml
browserstack.json

index 2e65257d8b6b0375aef1702f8587032d99059964..8703a2fb4b5fd8d250788d380554e80dfc48f237 100644 (file)
@@ -1,10 +1,18 @@
 language: node_js
-node_js:
-  - "lts/boron"
-  - "lts/carbon"
-  - "stable"
-install:
-  - npm install
-script: npm run test:ci
+
+matrix:
+  include:
+  - node_js: "lts/boron"
+    env: ZF_TRAVIS_COMMAND=test:javascript:units
+  - node_js: "lts/carbon"
+    env: ZF_TRAVIS_COMMAND=test:javascript:units
+  - node_js: "stable"
+    env: ZF_TRAVIS_COMMAND=test:javascript:units
+  - node_js: "stable"
+    env: ZF_TRAVIS_COMMAND=test:javascript:browserstack
+
+install: npm install
+script: npm run $ZF_TRAVIS_COMMAND
+
 notifications:
   email: false
index c73b930c0feb4cc51b17256010949ccb1d905012..283be64eeb898aa09afcc61b76af8da3c5275482 100644 (file)
@@ -1,6 +1,7 @@
 {
     "test_path": "test/javascript/index.html",
     "test_framework": "mocha",
+    "exit_with_fail": true,
     "browsers": [
         {
             "browser": "chrome",