forked from robotframework/SeleniumLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (80 loc) · 2.34 KB
/
.travis.yml
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
language: python
sudo: required
dist: trusty
env:
global:
- JYTHON=false
addons:
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/
matrix:
include:
- python: "3.6"
env:
- BROWSER=headlesschrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.1
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python3
- python: "pypy3.5"
env:
- BROWSER=chrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.1
- ROBOT_OPTIONS=--dotted
- INTERPRETER=pypy3
- python: "3.6"
env:
- BROWSER=headlesschrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.1
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python3
- JYTHON=true
- python: "3.4"
env:
- BROWSER=headlesschrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.1
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python3
- python: "2.7"
env:
- BROWSER=chrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=2.9.2
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python2
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
- python -m pip install robotstatuschecker
- echo $INTERPRETER
- $INTERPRETER --version
- $INTERPRETER -m pip install .
- if [ "$JYTHON" == "true" ]; then
$INTERPRETER -m pip install mockito;
$INTERPRETER -m pip install robotstatuschecker;
$INTERPRETER -m pip install -r requirements.txt;
else
$INTERPRETER -m pip install -r requirements-dev.txt;
fi
- $INTERPRETER -m pip install selenium==$SELENIUM
- $INTERPRETER -m pip install robotframework==$ROBOTFRAMEWORK
script:
- python atest/run.py $BROWSER --interpreter $INTERPRETER $ROBOT_OPTIONS