build: fix chrome headless not starting (#9418)

* build: fix chrome headless not starting

* Applies a workaround for https://github.com/travis-ci/travis-ci/issues/8836 that fixes the Chrome launch issues. (similar workaround applied on angular/angular)

* Add comment for node version
This commit is contained in:
Paul Gschwendtner
2018-01-17 20:47:44 +01:00
committed by Andrew Seguin
parent 60b0625667
commit ac244d940f
+9 -2
View File
@@ -1,9 +1,16 @@
language: node_js
sudo: false
dist: trusty
# Temporary set sudo to required, because in normal container-based Travis jobs, the Chrome
# binaries seem to be owned by root, and therefore can't be accessed by Karma. To workaround
# the issue we temporary grant the CI sudo permissions.
# https://github.com/travis-ci/travis-ci/issues/8836#issuecomment-356362524.
sudo: required
node_js:
- '8'
# Use the explicit NodeJS LTS version 8.9.4 to avoid any automatic upgrade of the version.
# This ensures that all Travis jobs run consistently and don't have different Node versions.
- '8.9.4'
addons:
jwt: