File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ before_script:
5
5
- npm install
6
6
- npm run build
7
7
script :
8
- - npm test
8
+ - npm run test-travis
Original file line number Diff line number Diff line change @@ -25,16 +25,21 @@ module.exports = function(config) {
25
25
karmaTypescriptConfig : {
26
26
tsconfig : 'tsconfig.test.json'
27
27
} ,
28
- browsers : [
29
- 'Chrome' ,
30
- //'Firefox'
31
- ] ,
28
+ browsers : process . env . KARMA_BROWSERS
29
+ ? process . env . KARMA_BROWSERS . split ( ',' )
30
+ : [ 'Chrome' ] ,
32
31
browserNoActivityTimeout : 60000 ,
33
32
captureTimeout : 60000 ,
34
33
client : {
35
34
jasmine : {
36
35
timeoutInterval : 60000
37
36
}
37
+ } ,
38
+ customLaunchers : {
39
+ ChromeHeadlessNoSandbox : {
40
+ base : 'ChromeHeadless' ,
41
+ flags : [ '--no-sandbox' ]
42
+ }
38
43
}
39
44
} )
40
45
}
Original file line number Diff line number Diff line change 8
8
"rollup-min" : " rollup -c rollup.config.js --environment minify:true" ,
9
9
"rollup" : " rollup -c rollup.config.js" ,
10
10
"build" : " npm run rollup && npm run rollup-min && tsc" ,
11
- "test" : " karma start"
11
+ "test" : " karma start" ,
12
+ "test-travis" : " set KARMA_BROWSERS=ChromeHeadlessNoSandbox&& karma start"
12
13
},
13
14
"keywords" : [
14
15
" face" ,
You can’t perform that action at this time.
0 commit comments