support/travis.sh in watir-webdriver-0.4.1 vs support/travis.sh in watir-webdriver-0.5.0
- old
+ new
@@ -1,14 +1,13 @@
#/bin/sh
+CHROME_REVISION=119695
sh -e /etc/init.d/xvfb start && git submodule update --init || exit 1
if [[ "$WATIR_WEBDRIVER_BROWSER" = "chrome" ]]; then
- curl -L https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo -s 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get -y install google-chrome-unstable unzip
- # curl -k http://chromium.googlecode.com/files/chromedriver_linux32_14.0.836.0.zip | sudo -s 'funzip > /usr/bin/chromedriver'
- sudo -s 'curl -L http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux/109799/chrome-linux.test/chromedriver > /usr/bin/chromedriver'
- sudo chmod +x /usr/bin/chromedriver
+ sudo apt-get install -y unzip libxss1
+ curl -L -O "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux/$CHROME_REVISION/chrome-linux.zip"
+ unzip chrome-linux.zip
+ curl -L "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux/$CHROME_REVISION/chrome-linux.test/chromedriver" > chrome-linux/chromedriver
+ chmod +x chrome-linux/chromedriver
fi