Enables some unit tests on travis.

This commit is contained in:
Yury Delendik 2017-01-09 15:43:45 -06:00
parent 049d7fa277
commit c45300e06c
3 changed files with 34 additions and 2 deletions

View file

@ -525,6 +525,19 @@ gulp.task('botmakeref', function (done) {
});
});
gulp.task('unittestcli', function (done) {
var args = ['JASMINE_CONFIG_PATH=test/unit/clitests.json'];
var testProcess = spawn('node_modules/.bin/jasmine', args,
{stdio: 'inherit'});
testProcess.on('close', function (code) {
if (code !== 0) {
done(new Error('Unit tests failed.'));
return;
}
done();
});
});
gulp.task('lint', function (done) {
console.log();
console.log('### Linting JS files');