Skip to content

Commit 50b5f93

Browse files
author
josh
authored
test: auto sync chromedriver / chrome versions
1 parent 3134fb1 commit 50b5f93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ base_acceptance: &acceptance_default
101101
- ./bin/yarn install --pure-lockfile
102102
- python setup.py install_egg_info
103103
- pip install -U -e ".[dev,tests,optional]"
104-
- wget -N "https://chromedriver.storage.googleapis.com/$(curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE_75)/chromedriver_linux64.zip" -P ~/
104+
- |
105+
CHROME_MAJOR_VERSION="$(dpkg -s google-chrome-stable | sed -nr 's/Version: ([0-9]+).*/\1/p')"
106+
wget -N "https://chromedriver.storage.googleapis.com/$(curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION})/chromedriver_linux64.zip" -P ~/
105107
- unzip ~/chromedriver_linux64.zip -d ~/
106108
- rm ~/chromedriver_linux64.zip
107109
- sudo install -m755 ~/chromedriver /usr/local/bin/

0 commit comments

Comments
 (0)