mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix: Use /usr/bin/chrome
This commit is contained in:
parent
55faa0e0af
commit
3e9f494fd7
2 changed files with 10 additions and 5 deletions
|
|
@ -121,7 +121,7 @@ before_script:
|
|||
- echo "export ZEPPELIN_HELIUM_REGISTRY=helium" >> conf/zeppelin-env.sh
|
||||
- tail conf/zeppelin-env.sh
|
||||
# - export DBUS_SESSION_BUS_ADDRESS=/dev/null
|
||||
- export CHROME_BIN=google-chrome-stable;
|
||||
- export CHROME_BIN=/usr/bin/google-chrome-stable
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- sleep 3
|
||||
|
|
|
|||
|
|
@ -34,11 +34,16 @@ var baseConfig = {
|
|||
},
|
||||
};
|
||||
|
||||
var chromeOptions = {
|
||||
args: ['--headless', '--disable-gpu']
|
||||
}
|
||||
|
||||
if (process.env.TRAVIS) {
|
||||
baseConfig.capabilities.chromeOptions = {
|
||||
args: ['--headless', '--disable-gpu'],
|
||||
binary: process.env.CHROME_BIN,
|
||||
};
|
||||
chromeOptions.binary = process.env.CHROME_BIN;
|
||||
}
|
||||
|
||||
if (process.env.TRAVIS) {
|
||||
baseConfig.capabilities.chromeOptions = chromeOptions;
|
||||
}
|
||||
|
||||
exports.config = baseConfig;
|
||||
|
|
|
|||
Loading…
Reference in a new issue