File tree Expand file tree Collapse file tree 3 files changed +10
-50
lines changed Expand file tree Collapse file tree 3 files changed +10
-50
lines changed Original file line number Diff line number Diff line change 33
33
"docker" : " node tasks/docker.js" ,
34
34
"pretest" : " node tasks/pretest.js" ,
35
35
"test-jasmine" : " karma start test/jasmine/karma.conf.js" ,
36
- "citest-jasmine" : " karma start test/jasmine/karma.ciconf .js" ,
36
+ "citest-jasmine" : " CIRCLECI=0 karma start test/jasmine/karma.conf .js" ,
37
37
"test-image" : " node tasks/test_image.js" ,
38
38
"test-image-gl2d" : " node tasks/test_image.js gl2d_* --queue" ,
39
39
"test-export" : " node tasks/test_export.js" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ var constants = require('../../tasks/util/constants');
17
17
18
18
var arg = process . argv [ 4 ] ;
19
19
20
+ var isCI = ! ! process . env . CIRCLECI ;
20
21
var testFileGlob = arg ? arg : 'tests/*_test.js' ;
21
22
var isSingleSuiteRun = ( arg && arg . indexOf ( 'bundle_tests/' ) === - 1 ) ;
22
23
var isRequireJSTest = ( arg && arg . indexOf ( 'bundle_tests/requirejs' ) !== - 1 ) ;
@@ -84,7 +85,13 @@ func.defaultConfig = {
84
85
colors : true ,
85
86
86
87
// enable / disable watching file and executing tests whenever any file changes
87
- autoWatch : true ,
88
+ autoWatch : ! isCI ,
89
+
90
+ // if true, Karma captures browsers, runs the tests and exits
91
+ singleRun : isCI ,
92
+
93
+ // how long will Karma wait for a message from a browser before disconnecting (30 ms)
94
+ browserNoActivityTimeout : 30000 ,
88
95
89
96
// start these browsers
90
97
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
@@ -103,19 +110,14 @@ func.defaultConfig = {
103
110
}
104
111
} ,
105
112
106
- // Continuous Integration mode
107
- // if true, Karma captures browsers, runs the tests and exits
108
- singleRun : false ,
109
-
110
113
browserify : {
111
114
transform : [ '../../tasks/util/shortcut_paths.js' ] ,
112
115
extensions : [ '.js' ] ,
113
- watch : true ,
116
+ watch : ! isCI ,
114
117
debug : true
115
118
}
116
119
} ;
117
120
118
-
119
121
// Add lib/index.js to single-suite runs,
120
122
// to avoid import conflicts due to plotly.js
121
123
// circular dependencies.
You can’t perform that action at this time.
0 commit comments