Skip to content

Commit

Permalink
Do not submit to coverall if not from travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlamanna committed Nov 14, 2013
1 parent 93052f5 commit 49f7a59
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Gruntfile.js
Expand Up @@ -131,7 +131,14 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-karma-coveralls');

grunt.registerTask('test', ['dist-css', 'jshint', 'karma', 'coveralls']);
var testSubtasks = ['dist-css', 'jshint', 'karma'];
// Only push to coveralls under Travis
if (process.env.TRAVIS) {
if ((process.env.TRAVIS_REPO_SLUG === 'vlamanna/BootstrapFormHelpers' && process.env.TRAVIS_PULL_REQUEST === 'false')) {
testSubtasks.push('coveralls');
}
}
grunt.registerTask('test', testSubtasks);

// JS distribution task.
grunt.registerTask('dist-js', ['concat', 'uglify']);
Expand Down

0 comments on commit 49f7a59

Please sign in to comment.