Add test task to run all tests
This commit is contained in:
parent
51b5e12de1
commit
69a891eb6e
@ -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
|
|
||||||
|
@ -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());
|
||||||
|
Reference in New Issue
Block a user