File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ language: ruby
33sudo : required
44addons :
55 chrome : stable
6- apt :
7- packages :
8- - dpkg
9- - chromium-chromedriver
106
117# We deviate from the rspec-dev cache setting here.
128#
@@ -29,6 +25,7 @@ cache: bundler
2925bundler_args : " --binstubs --path ../bundle --retry=3 --jobs=3"
3026
3127before_install :
28+ - script/install_chrome_driver
3229 - script/update_rubygems_and_install_bundler
3330 - script/clone_all_rspec_repos
3431
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ CHROME_VERSION=$( google-chrome --version | grep -iE " [0-9.]{10,20}" | sed -E " s/.* ([0-9]+)\.[0-9]+\.[0-9]+\..*/\1/" )
4+ echo $CHROME_VERSION
5+
6+ LATEST=$( curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION }
7+ echo $LATEST
8+
9+
10+ curl https://chromedriver.storage.googleapis.com/$LATEST /chromedriver_linux64.zip > chromedriver_linux64.zip
11+
12+ unzip chromedriver_linux64.zip
13+ mv chromedriver ~ /bin/chromedriver
You can’t perform that action at this time.
0 commit comments