04ecb931 by Gary Katsevman

Only run saucelabs if PR initiated in main repo

1 parent d828f47e
......@@ -3,8 +3,7 @@ node_js:
- '0.10'
before_script:
- npm install -g grunt-cli
- curl https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh
| bash
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then curl https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash; fi
notifications:
hipchat:
rooms:
......
......@@ -270,7 +270,9 @@ module.exports = function(grunt) {
grunt.task.run(['jshint', 'manifests-to-js']);
if (process.env.TRAVIS) {
if (process.env.TRAVIS_PULL_REQUEST) {
grunt.task.run(['karma:phantomjs']);
} else if (process.env.TRAVIS) {
grunt.task.run(['karma:saucelabs']);
} else {
if (tasks.length === 0) {
......