Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 7e178a3

Browse files
chore(build): activate multiple browsers on Jenkins-CI
Closes #595
1 parent 60619d5 commit 7e178a3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Gruntfile.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ module.exports = function(grunt) {
126126
continuous: {
127127
singleRun: true
128128
},
129+
jenkins: {
130+
singleRun: true,
131+
colors: false,
132+
reporter: ['dots', 'junit'],
133+
browsers: ['Chrome', 'ChromeCanary', 'Firefox', 'Opera', '/Users/jenkins/bin/safari.sh', '/Users/jenkins/bin/ie9.sh' ,'/Users/jenkins/bin/ie10.sh']
134+
},
129135
travis: {
130136
singleRun: true,
131137
browsers: ['Firefox']
@@ -304,7 +310,13 @@ module.exports = function(grunt) {
304310
});
305311

306312
grunt.registerTask('test', 'Run tests on singleRun karma server', function() {
307-
grunt.task.run(process.env.TRAVIS ? 'karma:travis' : 'karma:continuous');
313+
//this task can be executed in 3 different environments: local, Travis-CI and Jenkins-CI
314+
//we need to take settings for each one into account
315+
if (process.env.TRAVIS) {
316+
grunt.task.run('karma:travis');
317+
} else {
318+
grunt.task.run(this.args.length ? 'karma:jenkins' : 'karma:continuous');
319+
}
308320
});
309321

310322
function setVersion(type, suffix) {

0 commit comments

Comments
 (0)