Add test task to run all tests

This commit is contained in:
Matthew Ross 2016-04-21 18:56:22 -04:00
parent 51b5e12de1
commit 69a891eb6e
2 changed files with 3 additions and 2 deletions

View File

@ -9,5 +9,4 @@ before_script:
- npm i -g gulp - npm i -g gulp
- npm i - npm i
script: script:
- gulp test-api - gulp test
- gulp test-app

View File

@ -122,6 +122,8 @@ gulp.task('api', () => {
.pipe(gulp.dest('dist/api/')); .pipe(gulp.dest('dist/api/'));
}); });
gulp.task('test', ['test-app', 'test-api']);
gulp.task('test-app', ['tsc', 'vendor'], () => { gulp.task('test-app', ['tsc', 'vendor'], () => {
return gulp.src(paths.tests_app) return gulp.src(paths.tests_app)
.pipe(mocha()); .pipe(mocha());