From 71957144be36df8d3550a78da942de01481fc8eb Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 16 Jan 2018 15:55:46 +0100 Subject: [PATCH 1/2] 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) --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0e29b1fa486d..68bab9d3619e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,14 @@ 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' + - '8.9.4' addons: jwt: From a600c384ce5e1a851815a6d9aa0a490850981d64 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 16 Jan 2018 18:50:26 +0100 Subject: [PATCH 2/2] Add comment for node version --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 68bab9d3619e..15000a480297 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,8 @@ dist: trusty sudo: required node_js: + # 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: