Skip to content

Commit

Permalink
only run saucelabs tests on branch builds (#50)
Browse files Browse the repository at this point in the history
* Only run saucelabs test on branch builds

* fix
  • Loading branch information
goto-bus-stop committed Feb 16, 2018
1 parent 9dbb657 commit 8d25861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
@@ -1,7 +1,10 @@
sudo: false
language: node_js
node_js:
- '0.10'
- '0.10'
script:
- npm test
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run test:browsers; fi
env:
global:
- secure: XcBiD8yReflut9q7leKsigDZ0mI3qTKH+QrNVY8DaqlomJOZw8aOrVuX9Jz12l86ZJ41nbxmKnRNkFzcVr9mbP9YaeTb3DpeOBWmvaoSfud9Wnc16VfXtc1FCcwDhSVcSiM3UtnrmFU5cH+Dw1LPh5PbfylYOS/nJxUvG0FFLqI=
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -29,7 +29,8 @@
"zuul": "^3.11.1"
},
"scripts": {
"test": "mocha --ui qunit -- tests/index.js && zuul -- tests/index.js"
"test": "mocha --ui qunit -- tests/index.js",
"test:browsers": "zuul -- tests/index.js"
},
"license": "MIT"
}

0 comments on commit 8d25861

Please sign in to comment.