Skip to content

Instantly share code, notes, and snippets.

@taktran
Created April 12, 2015 14:29
Show Gist options
  • Save taktran/fc5ce4a49c61c79228d4 to your computer and use it in GitHub Desktop.
Save taktran/fc5ce4a49c61c79228d4 to your computer and use it in GitHub Desktop.
Gulp task to run tests on CircleCI
/**
* 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