forked from appium/appium-android-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
30 lines (22 loc) · 779 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
'use strict';
const { exec } = require('teen_process');
const system = require('appium-support').system;
const gulp = require('gulp');
const boilerplate = require('appium-gulp-plugins').boilerplate.use(gulp);
const ANT_CMD = system.isWindows() ? 'ant.bat' : 'ant';
gulp.task('ant-clean', function clean () {
return exec(ANT_CMD, ['clean'], {cwd: 'bootstrap'});
});
gulp.task('ant-build', function build () {
return exec(ANT_CMD, ['build'], {cwd: 'bootstrap'});
});
gulp.task('ant', gulp.series(['ant-clean', 'ant-build']));
boilerplate({
build: 'appium-android-driver',
e2eTest: {android: true},
testTimeout: 40000,
coverage: {
files: ['./build/test/unit/**/*-specs.js', '!./build/test/functional/**', '!./build/test/assets'],
verbose: true,
},
});