fix: Use /usr/bin/chrome

This commit is contained in:
1ambda 2017-07-11 19:00:09 +09:00
parent 55faa0e0af
commit 3e9f494fd7
2 changed files with 10 additions and 5 deletions

View file

@ -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

View file

@ -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;