build: remove chrome sandbox workaround (#9498)

In order to align with the `angular/angular` setup, we also remove the temporary Chrome Headless Sandbox workaround in favor of faster Travis CI containers. To be able to still use headless chrome, we specify the `no-sandbox` flag.

Reference https://github.com/angular/angular/pull/21641
This commit is contained in:
Paul Gschwendtner
2018-01-22 18:46:11 +01:00
committed by Jeremy Elbourn
parent 4523556658
commit 33afd93198
3 changed files with 9 additions and 9 deletions
+1 -6
View File
@@ -1,11 +1,6 @@
language: node_js
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
sudo: false
node_js:
# Use the explicit NodeJS LTS version 8.9.4 to avoid any automatic upgrade of the version.
+1
View File
@@ -37,6 +37,7 @@ const config = {
if (process.env['TRAVIS']) {
const key = require('../scripts/saucelabs/sauce_config');
config.sauceUser = process.env['SAUCE_USERNAME'];
config.sauceKey = key;
config.capabilities = {
+7 -3
View File
@@ -5,15 +5,19 @@
"--window-size=1024,768"
]
},
"ChromeHeadlessCI": {
"base": "ChromeHeadless",
"flags": [
"--window-size=1024,768",
"--no-sandbox"
]
},
"FirefoxHeadless": {
"base": "Firefox",
"flags": [
"-headless"
]
},
"ChromeHeadlessCI": {
"base": "ChromeHeadlessLocal"
},
"SL_CHROME": {
"base": "SauceLabs",
"browserName": "chrome",