File tree 2 files changed +21
-0
lines changed 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 3
3
- stable
4
4
- beta
5
5
- nightly
6
+ # chrome sandbox fails to run without this https://github.com/travis-ci/travis-ci/issues/7150
7
+ sudo : required
6
8
addons :
7
9
# Force the latest firefox, otherwise we get and old ESR version
8
10
# that we dont even support
9
11
firefox : latest
12
+ chrome : stable
10
13
apt :
11
14
packages :
12
15
- firefox
16
+ - google-chrome-stable
13
17
- xvfb
14
18
before_script :
15
19
# start xvfb and firefox to run the tests
@@ -21,5 +25,10 @@ before_script:
21
25
- bin/download_geckodriver
22
26
- export PATH=$PATH:$HOME/.cargo/bin:$PWD/bin
23
27
- which geckodriver
28
+ # install chromedriver
29
+ - bin/download_chromedriver
30
+ - export CHROME_BIN=/usr/bin/google-chrome-stable
31
+ - export CHROME_HEADLESS=1
32
+ - which chromedriver
24
33
script :
25
34
- RUST_LOG="webdriver=trace" cargo test --verbose
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -ex
3
+
4
+ script_dir=$( cd $( dirname ${BASH_SOURCE[0]} ) ; pwd )
5
+
6
+ version=$( wget -q -O - http://chromedriver.storage.googleapis.com/LATEST_RELEASE)
7
+
8
+ curl -sSL \
9
+ http://chromedriver.storage.googleapis.com/$version /chromedriver_linux64.zip \
10
+ -o ${script_dir} /chromedriver-linux64.zip
11
+ unzip -d ${script_dir} ${script_dir} /chromedriver-linux64.zip
12
+ chmod +x ${script_dir} /chromedriver
You can’t perform that action at this time.
0 commit comments