From a6e14285eb02a7940f5cf5705da03a7fda453eb8 Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Sun, 25 Mar 2018 00:41:24 +0100 Subject: [PATCH] chore: move browserstack tests to its own travis job Prevent browserstack tests to be started in all Travis jobs and start it only in its dedicated job. --- .travis.yml | 22 +++++++++++++++------- browserstack.json | 1 + 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2e65257d8..8703a2fb4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/browserstack.json b/browserstack.json index c73b930c0..283be64ee 100644 --- a/browserstack.json +++ b/browserstack.json @@ -1,6 +1,7 @@ { "test_path": "test/javascript/index.html", "test_framework": "mocha", + "exit_with_fail": true, "browsers": [ { "browser": "chrome", -- 2.47.2