Enables some unit tests on travis.
This commit is contained in:
parent
049d7fa277
commit
c45300e06c
3 changed files with 34 additions and 2 deletions
13
gulpfile.js
13
gulpfile.js
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue