Skip to content

Commit

Permalink
An attempt to install the proper chrome version by install script
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Sep 16, 2019
1 parent 64ee6c0 commit 3a7a86d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
dist: xenial
addons:
apt:
sources:
- google-chrome
update: true
packages:
- google-chrome-stable
services:
- xvfb
env:
Expand Down
5 changes: 5 additions & 0 deletions scripts/travis/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
set -ex

if [[ ! -z $CHROME ]]; then
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
apt-get update -qqy
apt-get -qqy install google-chrome-stable
rm /etc/apt/sources.list.d/google-chrome.list
export CHROMEDRIVER_VERSION=`curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
unzip chromedriver_linux64.zip && chmod +x chromedriver && sudo mv chromedriver /usr/local/bin
Expand Down

0 comments on commit 3a7a86d

Please sign in to comment.