Created
April 12, 2015 14:29
-
-
Save taktran/fc5ce4a49c61c79228d4 to your computer and use it in GitHub Desktop.
Gulp task to run tests on CircleCI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CI test task. | |
* | |
* Use `minijasminenode2` instead of `gulp-jasmine` | |
* because normal `gulp-jasmine` doesn't exit properly | |
* properly. | |
*/ | |
gulp.task('test:ci', function() { | |
jasmine = require('minijasminenode2'); | |
var options = { | |
specs: globule.find(FILES.test), | |
showColors: true, | |
onComplete: function(passed) { | |
if (!passed) { | |
process.exit(1); | |
} | |
} | |
}; | |
jasmine.executeSpecs(options); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment