Skip to content

Instantly share code, notes, and snippets.

@InfiniteSynthesis
Last active December 28, 2020 07:53
Show Gist options
  • Save InfiniteSynthesis/5478d3c5590f09cf76db8362095fcf4e to your computer and use it in GitHub Desktop.
Save InfiniteSynthesis/5478d3c5590f09cf76db8362095fcf4e to your computer and use it in GitHub Desktop.
Auto-upgrade chromedriver on travis-ci
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