Sha256: 488ff6ad780a1a1d4d98734ab1d5db5c4544179bc4f02b3b7f4e65ac5296e144

Contents?: true

Size: 1.45 KB

Versions: 5

Compression:

Stored size: 1.45 KB

Contents

#!/bin/bash

set -e
set -x

sh -e /etc/init.d/xvfb start

if [[ "$RAKE_TASK" = "yard:doctest" ]]; then
  mkdir ~/.yard
  bundle exec yard config -a autoload_plugins yard-doctest
fi

if [[ "$RAKE_TASK" = "spec:chrome" ]] || [[ "$RAKE_TASK" = "yard:doctest" ]]; then
  # https://omahaproxy.appspot.com
  # https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/
  # CHROME_REVISION=`curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE`
  CHROME_REVISION=417841

  curl -L -O "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/${CHROME_REVISION}/chrome-linux.zip"
  unzip chrome-linux.zip

  CHROMEDRIVER_VERSION=$(curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE)
  curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
  unzip chromedriver_linux64.zip

  mv chromedriver chrome-linux/chromedriver
  chmod +x chrome-linux/chromedriver
fi

if [[ "$RAKE_TASK" = "spec:firefox" ]]; then
  curl -L -O "http://raw.githubusercontent.com/watir/driver_binaries/master/geckodriver"
  chmod +x geckodriver

  mv geckodriver travis-drivers/geckodriver
  geckodriver --version
  firefox --version
fi

if [[ "$RAKE_TASK" = "spec:phantomjs" ]]; then
  curl -L -O "http://raw.githubusercontent.com/watir/driver_binaries/master/phantomjs"
  chmod +x phantomjs

  mv phantomjs travis-drivers/phantomjs
  phantomjs --version
fi

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
watir-6.1.0 support/travis.sh
watir-6.0.3 support/travis.sh
watir-6.0.2 support/travis.sh
watir-6.0.1 support/travis.sh
watir-6.0.0 support/travis.sh