Browse Source

Only run saucelabs if PR initiated in main repo

pull/80/head
Gary Katsevman 11 years ago
parent
commit
04ecb9317c
  1. 3
      .travis.yml
  2. 4
      Gruntfile.js

3
.travis.yml

@ -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:

4
Gruntfile.js

@ -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) {

Loading…
Cancel
Save