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
3
3
sudo : required
4
4
addons :
5
5
chrome : stable
6
- apt :
7
- packages :
8
- - dpkg
9
- - chromium-chromedriver
10
6
11
7
# We deviate from the rspec-dev cache setting here.
12
8
#
@@ -29,6 +25,7 @@ cache: bundler
29
25
bundler_args : " --binstubs --path ../bundle --retry=3 --jobs=3"
30
26
31
27
before_install :
28
+ - script/install_chrome_driver
32
29
- script/update_rubygems_and_install_bundler
33
30
- script/clone_all_rspec_repos
34
31
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