Skip to content

Commit 75b6e42

Browse files
Added headless Chrome to the CI test suite
1 parent e8b73f3 commit 75b6e42

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Travis CI config
22
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
3+
# https://docs.travis-ci.com/user/customizing-the-build/
4+
# https://docs.travis-ci.com/user/migrating-from-legacy/
35

46
dist: trusty
5-
sudo: required # TEMPORARY HACK (see https://github.com/travis-ci/travis-ci/issues/8836)
7+
sudo: required # Required for headless Chrome
68
language: node_js
79

810
addons:
@@ -11,17 +13,16 @@ addons:
1113

1214
matrix:
1315
include:
14-
# Local Browsers
16+
# Node 10 + Browser tests
1517
- node_js: 10
1618
env: KARMA=true
1719

18-
# Sauce Labs
19-
- node_js: 10
20+
# Node 8 + SauceLabs tests
21+
- node_js: 8
2022
env: KARMA=true SAUCE=true
2123

22-
# Node
24+
# Node 6 tests
2325
- node_js: 6
24-
- node_js: 8
2526

2627
before_script:
2728
# Setup a virtual display for browser testing

karma.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function configureLocalBrowsers (config) {
9595
config.browsers = ['Firefox', 'Chrome', 'Safari'];
9696
}
9797
else if (isLinux) {
98-
config.browsers = ['Firefox'];
98+
config.browsers = ['Firefox', 'ChromeHeadless'];
9999
}
100100
else if (isWindows) {
101101
config.browsers = ['Firefox', 'Chrome', 'IE', 'Edge'];
@@ -158,6 +158,7 @@ function configureSauceLabs (config) {
158158
config.browsers = Object.keys(config.customLaunchers);
159159
config.concurrency = 1;
160160
config.captureTimeout = 60000;
161+
config.browserDisconnectTolerance = 5,
161162
config.browserDisconnectTimeout = 60000;
162163
config.browserNoActivityTimeout = 60000;
163164
// config.logLevel = 'debug';

0 commit comments

Comments
 (0)