-
Notifications
You must be signed in to change notification settings - Fork 52
/
Gruntfile.js
47 lines (37 loc) · 999 Bytes
/
Gruntfile.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
'use strict';
var path = require('path');
module.exports = function(grunt) {
grunt.initConfig({
env: {
chrome: {
PLATFORM: 'CHROME'
},
firefox: {
PLATFORM: 'FIREFOX'
},
android: {
PLATFORM: 'ANDROID'
}
},
jshint: {
all: ['Gruntfile.js', 'features/step_definitions/*.js', 'features/support/*.js'],
options: {
node: true,
strict: "global",
esversion: 6
}
},
exec: {
run_cucumber_tests: {
command: path.join('node_modules', 'cucumber', 'bin', 'cucumber.js')
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-env');
grunt.registerTask('default', ['jshint', 'exec']);
grunt.registerTask('chrome', ['env:chrome', 'jshint', 'exec']);
grunt.registerTask('firefox', ['env:firefox', 'jshint', 'exec']);
grunt.registerTask('android', ['env:android', 'jshint', 'exec']);
};