-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgulpfile.js
More file actions
35 lines (30 loc) · 828 Bytes
/
gulpfile.js
File metadata and controls
35 lines (30 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var gulp = require('gulp');
var karma = require('karma').Server;
require('./test/angular-1.2/gulpfile');
require('./test/angular-1.3/gulpfile');
require('./test/angular-1.4/gulpfile');
require('./test/angular-1.5/gulpfile');
require('./test/angular-1.6/gulpfile');
/**
* Run tests for all angular versions
*/
gulp.task('test-all-versions', ['test-1.2', 'test-1.3', 'test-1.4', 'test-1.5', 'test-1.6'], function (done) {
});
/**
* Run test once and exit
*/
gulp.task('test', function (done) {
karma.start({
configFile: __dirname + '/karma.conf.js',
singleRun: true
}, done);
});
/**
* Watch for file changes and re-run tests on each change
*/
gulp.task('tdd', function (done) {
karma.start({
configFile: __dirname + '/karma.conf.js'
}, done);
});
gulp.task('default', ['tdd']);