Last active
December 28, 2020 07:53
-
-
Save InfiniteSynthesis/5478d3c5590f09cf76db8362095fcf4e to your computer and use it in GitHub Desktop.
Auto-upgrade chromedriver on travis-ci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CHROME_VERSION=$(/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version) | |
CHROME_VERSION_V=${CHROME_VERSION:14:2} # get major edition | |
DRIVER_VERSION=$(curl -s wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION_V) | |
wget https://chromedriver.storage.googleapis.com/$DRIVER_VERSION/chromedriver_mac64.zip | |
unzip chromedriver_mac64.zip | |
mv ./chromedriver ./Tools/ | |
chmod +x ./Tools/chromedriver | |
export PATH="$PATH:`pwd`/Tools" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment