forked from robotframework/SeleniumLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
67 lines (67 loc) · 1.94 KB
/
.travis.yml
File metadata and controls
67 lines (67 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
language: python
sudo: required
dist: trusty
group: deprecated-2017Q4
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
before_install:
- CDVERSION=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
- wget --no-verbose http://chromedriver.storage.googleapis.com/$CDVERSION/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo chmod u+x chromedriver
- sudo mv chromedriver /usr/bin/
# Firefox latest
- FDVERSION=`curl -s -L https://github.com/mozilla/geckodriver/releases/latest | grep -E href=\"\(.*\)geckodriver-v\(.*\)-linux64.tar.gz\"`
- VFILE=`echo $FDVERSION | sed -E "s/^.*<a href=\"/https:\/\/github.com/" -- | sed -E "s/\" rel=\"nofollow\">//" --`
- wget --no-verbose $VFILE
- tar xzf geckodriver*-linux64.tar.gz
- sudo chmod u+x geckodriver
- sudo mv geckodriver /usr/bin/
install:
- pip install .
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
matrix:
include:
- python: "3.6"
env:
- BROWSER=chrome
- SELENIUM=3.8.0
- ROBOTFRAMEWORK=3.0.2
- ROBOT_OPTIONS=--dotted
- python: "2.7"
env:
- BROWSER=chrome
- SELENIUM=2.53.6
- ROBOTFRAMEWORK=2.9.2
- ROBOT_OPTIONS=--dotted
- python: "2.7"
env:
- BROWSER=chrome
- SELENIUM=3.8.0
- ROBOTFRAMEWORK=2.8.7
- ROBOT_OPTIONS=
- python: "3.3"
env:
- BROWSER=chrome
- SELENIUM=2.53.6
- ROBOTFRAMEWORK=3.0.2
- ROBOT_OPTIONS=--dotted
- python: "3.3"
env:
- BROWSER=firefox
- SELENIUM=3.8.0
- ROBOTFRAMEWORK=3.0.2
- ROBOT_OPTIONS="--exclude Known_Issue_Firefox --dotted"
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- pip install selenium==$SELENIUM
- pip install robotframework==$ROBOTFRAMEWORK
script:
- python test/run_tests.py $BROWSER $ROBOT_OPTIONS