-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
32 lines (28 loc) · 794 Bytes
/
gulpfile.js
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
var gulp = require('gulp');
var jasmine = require('gulp-jasmine-phantom');
// Paths
var environment;
var repoRoot = __dirname + '/';
gulp.task('test', function () {
var manifest = require(repoRoot + 'spec/javascripts/manifest.js').manifest;
manifest.support = manifest.support.map(function (val) {
return val.replace(/^(\.\.\/)*/, function (match) {
if (match === '../../../') {
return '';
}
else {
return 'spec/javascripts/support/'
}
});
});
manifest.test = manifest.test.map(function (val) {
return val.replace(/^\.\.\//, 'spec/javascripts/');
});
return gulp.src(manifest.test)
.pipe(jasmine({
'jasmine': '2.0',
'integration': true,
'abortOnFail': true,
'vendor': manifest.support
}));
});