mirror of https://github.com/snachodog/mybuddy.git
37 lines
638 B
JavaScript
37 lines
638 B
JavaScript
var gulp = require('gulp');
|
|
|
|
var spawn = require('child_process').spawn;
|
|
|
|
|
|
gulp.task('test', function(cb) {
|
|
spawn(
|
|
'pipenv',
|
|
[
|
|
'run',
|
|
'python',
|
|
'manage.py',
|
|
'test'
|
|
],
|
|
{
|
|
stdio: 'inherit'
|
|
}
|
|
).on('exit', cb);
|
|
});
|
|
|
|
gulp.task('coverage', function(cb) {
|
|
spawn(
|
|
'pipenv',
|
|
[
|
|
'run',
|
|
'coverage',
|
|
'run',
|
|
'--source=api,core,dashboard,reports',
|
|
'manage.py',
|
|
'test'
|
|
],
|
|
{
|
|
stdio: 'inherit'
|
|
}
|
|
).on('exit', cb);
|
|
});
|