Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 85a3c0f

Browse files
author
josh
authored
test: auto sync chromedriver / chrome versions (#501)
1 parent 1973527 commit 85a3c0f

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
@@ -42,7 +42,9 @@ matrix:
4242
- pyenv global system
4343
- python -m pip install codecov
4444
- pip freeze
45-
- wget -N "https://chromedriver.storage.googleapis.com/$(curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE_75)/chromedriver_linux64.zip" -P ~/
45+
- |
46+
CHROME_MAJOR_VERSION="$(dpkg -s google-chrome-stable | sed -nr 's/Version: ([0-9]+).*/\1/p')"
47+
wget -N "https://chromedriver.storage.googleapis.com/$(curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION})/chromedriver_linux64.zip" -P ~/
4648
- unzip ~/chromedriver_linux64.zip -d ~/
4749
- rm ~/chromedriver_linux64.zip
4850
- sudo install -m755 ~/chromedriver /usr/local/bin/

0 commit comments

Comments
 (0)