Skip to content

Commit 4ffb550

Browse files
committed
ChromeHeadless
1 parent a7a054a commit 4ffb550

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ install:
4040
4141
script:
4242
- |
43-
- yarn test &&
44-
yarn test:node &&
43+
- yarn build &&
44+
npx ng test --watch=false --browsers=ChromeHeadless &&
4545
node tools/run-typings-test.js &&
4646
bash ./test/ng-build/build.sh

karma.conf.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ module.exports = function (config) {
2424
colors: true,
2525
logLevel: config.LOG_INFO,
2626
autoWatch: true,
27-
browsers: ['Chrome'],
27+
browsers: ['Chrome', 'ChromeHeadless'],
2828
singleRun: false,
29-
restartOnFileChange: true
29+
restartOnFileChange: true,
30+
customLaunchers: {
31+
ChromeHeadlessTravis: {
32+
base: 'ChromeHeadless',
33+
flags: ['--no-sandbox']
34+
}
35+
},
3036
});
3137
};

tools/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ apt-get -y update
55
apt-get -y install google-chrome-stable
66

77
# TODO parallelize these
8-
npx karma start --single-run --browsers ChromeHeadlessTravis --reporters mocha &&
8+
npx ng test --watch=false --browsers=ChromeHeadless &&
99
node tools/run-typings-test.js &&
1010
bash ./test/ng-build/build.sh

0 commit comments

Comments
 (0)