Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.

Commit 922da9a

Browse files
committed
Travis chrome support with no sandbox
1 parent 389ddc6 commit 922da9a

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ language: node_js
22
node_js:
33
- "lts/*"
44
- "8"
5+
sudo: required
6+
addons:
7+
chrome: stable

karma.conf.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,15 @@ module.exports = (config) => {
5656

5757
// start these browsers
5858
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
59-
browsers: ['Chrome'],
60-
59+
browsers: ['Chrome', 'ChromeHeadless', 'ChromeHeadlessNoSandbox'],
60+
61+
// you can define custom flags
62+
customLaunchers: {
63+
ChromeHeadlessNoSandbox: {
64+
base: 'ChromeHeadless',
65+
flags: ['--no-sandbox']
66+
}
67+
},
6168

6269
// Continuous Integration mode
6370
// if true, Karma captures browsers, runs the tests and exits

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
},
1616
"homepage": "https://github.com/AlonMiz/angular-wait-until#readme",
1717
"scripts": {
18-
"test": "karma start --single-run"
18+
"test": "karma start --single-run --no-sandbox",
19+
"test-dev": "karma start"
20+
1921
},
2022
"keywords": [
2123
"angular",

0 commit comments

Comments
 (0)