mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Use webdrivers gem to keep chromedriver and geckodriver up to date
This commit is contained in:
parent
28f12f7ef9
commit
0e2477af73
3 changed files with 7 additions and 8 deletions
13
.travis.yml
13
.travis.yml
|
@ -23,6 +23,11 @@ addons:
|
|||
- google-chrome-beta
|
||||
- awesome
|
||||
|
||||
cache:
|
||||
bundler: true
|
||||
directories:
|
||||
- ~/.webdrivers
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- gemfile: gemfiles/Gemfile.rspec-34
|
||||
|
@ -62,14 +67,6 @@ matrix:
|
|||
- gemfile: gemfiles/Gemfile.edge-marionette
|
||||
- rvm: rbx-3
|
||||
before_install:
|
||||
- mkdir -p ~/drivers; export PATH=~/drivers:$PATH;
|
||||
- CHROMEDRIVER_VERSION=$(wget -q -O - http://chromedriver.storage.googleapis.com/LATEST_RELEASE);
|
||||
CHROMEDRIVER_URL="http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip";
|
||||
FILE=`mktemp`; wget "$CHROMEDRIVER_URL" -qO $FILE && unzip $FILE chromedriver -d ~/drivers; rm $FILE; chmod 777 ~/drivers/chromedriver;
|
||||
~/drivers/chromedriver --version;
|
||||
- GECKODRIVER_URL="https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz";
|
||||
FILE=`mktemp`; wget "$GECKODRIVER_URL" -qO $FILE && tar xz -C ~/drivers -f $FILE geckodriver; rm $FILE; chmod 777 ~/drivers/geckodriver;
|
||||
~/drivers/geckodriver --version;
|
||||
- if [[ $BUNDLE_GEMFILE =~ Gemfile.edge-marionette$ ]]; then
|
||||
pushd ..;
|
||||
git clone --depth 1 https://github.com/SeleniumHQ/selenium.git;
|
||||
|
|
|
@ -28,6 +28,7 @@ Gem::Specification.new do |s|
|
|||
s.add_runtime_dependency("addressable")
|
||||
|
||||
s.add_development_dependency("selenium-webdriver", [">= 3.0", "< 4.0", "!=3.4.1"])
|
||||
s.add_development_dependency("webdrivers") if ENV['TRAVIS']
|
||||
s.add_development_dependency("sinatra", [">= 1.4.0"])
|
||||
s.add_development_dependency("rspec", [">= 3.4.0"])
|
||||
s.add_development_dependency("launchy", [">= 2.0.4"])
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
require 'rspec/expectations'
|
||||
require "capybara/spec/spec_helper"
|
||||
require 'webdrivers' if ENV['TRAVIS']
|
||||
|
||||
RSpec.configure do |config|
|
||||
Capybara::SpecHelper.configure(config)
|
||||
|
|
Loading…
Reference in a new issue