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
93 lines (93 loc) · 2.78 KB
/
.travis.yml
File metadata and controls
93 lines (93 loc) · 2.78 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
language: python
sudo: required
dist: trusty
env:
global:
- JYTHON=false
- GRID=False
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
before_install:
- CDVERSION=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
- echo $CDVERSION
- 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/
matrix:
include:
- python: "3.7-dev"
env:
- BROWSER=headlesschrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.2
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python3
- python: "pypy3.5"
env:
- BROWSER=chrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.2
- ROBOT_OPTIONS=--dotted
- INTERPRETER=pypy3
- python: "3.6"
env:
- BROWSER=headlesschrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.2
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python3
- JYTHON=true
- python: "3.4"
env:
- BROWSER=headlesschrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.2
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python3
- python: "2.7"
env:
- BROWSER=chrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.0.4
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python2
- python: "3.7-dev"
env:
- BROWSER=headlesschrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.2
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python3
- GRID=true
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- if [ "$JYTHON" == "true" ]; then
wget -O jython.jar http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7.1/jython-installer-2.7.1.jar;
java -jar jython.jar -s -d ~/jython;
export PATH="~/jython/bin:$PATH";
export INTERPRETER=~/jython/bin/jython;
fi
- echo $INTERPRETER
- $INTERPRETER --version
- $INTERPRETER -m pip install .
- if [ "$JYTHON" == "true" ]; then
$INTERPRETER -m pip install mockito;
python -m pip install requests;
python -m pip install robotstatuschecker;
else
$INTERPRETER -m pip install -r requirements-dev.txt;
fi
- if [ "$GRID" == "true" ]; then
wget --output-document=./selenium-server-standalone.jar http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar;
sudo chmod u+x ./selenium-server-standalone.jar;
fi
- $INTERPRETER -m pip install selenium==$SELENIUM
- $INTERPRETER -m pip install robotframework==$ROBOTFRAMEWORK
script:
- python atest/run.py $BROWSER --interpreter $INTERPRETER --grid $GRID $ROBOT_OPTIONS