Fix running on Travis-Ci

This commit is contained in:
Andrey Lushnikov 2017-06-20 19:47:12 -07:00 committed by Pavel Feldman
parent eb02af93b6
commit 7874108fda
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ node_js:
- "7"
dist: trusty
env:
- DISABLE_CHROMIUM_SANDBOX=true
cache:
yarn: true
directories:

View File

@ -51,6 +51,8 @@ class Browser {
`--disable-gpu`,
]);
}
if (process.env['DISABLE_CHROMIUM_SANDBOX'])
this._chromeArguments.push('--no-sandbox');
if (typeof options.executablePath === 'string') {
this._chromeExecutable = options.executablePath;
} else {