Skip to content

Commit 9fe6080

Browse files
committed
add chrome and karma config
1 parent c6a0c36 commit 9fe6080

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
language: node_js
2+
dist: trusty
3+
sudo: required
24
node_js:
35
- '8'
46
before_install:

projects/ngx-text-diff/karma.conf.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@ module.exports = function (config) {
2424
port: 9876,
2525
colors: true,
2626
logLevel: config.LOG_INFO,
27-
autoWatch: true,
28-
browsers: ['Chrome'],
29-
singleRun: false
27+
autoWatch: false,
28+
browsers: ['ChromeHeadless'],
29+
// you can define custom flags
30+
customLaunchers: {
31+
ChromeHeadlessNoSandbox: {
32+
base: 'ChromeHeadless',
33+
flags: ['--no-sandbox']
34+
}
35+
},
36+
singleRun: true
3037
});
3138
};

src/karma.conf.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@ module.exports = function (config) {
2424
port: 9876,
2525
colors: true,
2626
logLevel: config.LOG_INFO,
27-
autoWatch: true,
28-
browsers: ['Chrome'],
29-
singleRun: false
27+
autoWatch: false,
28+
browsers: ['ChromeHeadless'],
29+
// you can define custom flags
30+
customLaunchers: {
31+
ChromeHeadlessNoSandbox: {
32+
base: 'ChromeHeadless',
33+
flags: ['--no-sandbox']
34+
}
35+
},
36+
singleRun: true
3037
});
31-
};
38+
};

0 commit comments

Comments
 (0)