Do not run saucelabs tests on pull requests because they will fail

This commit is contained in:
Zaki Manian 2015-01-02 20:33:52 -08:00
parent fca67d7b0e
commit 7b851ba548

View file

@ -149,7 +149,13 @@ module.exports = function(grunt) {
});
grunt.registerTask('dev', ['connect', 'watch']);
grunt.registerTask('test', ['jshint', 'connect', 'saucelabs-mocha']);
//Do not run saucelabs tests on pull requests because they will fail
var pullRequest = process.env.TRAVIS_PULL_REQUEST;
if (pullRequest ==="false") {
grunt.registerTask('test', ['jshint', 'connect', 'saucelabs-mocha']);
} else {
grunt.registerTask('test', ['jshint']);
}
grunt.registerTask('default', ['preen', 'concat', 'sass']);
grunt.registerTask('build', ['compile', 'concat:curve25519']);