forked from robotframework/SeleniumLibrary
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
75 lines (75 loc) · 2.16 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
language: python
dist: bionic
services:
- xvfb
env:
global:
- GRID=False
- PYPY=False
addons:
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"
env:
- BROWSER=headlesschrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.2
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python3
- python: "3.7"
env:
- BROWSER=chrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.2
- ROBOT_OPTIONS=--dotted
- INTERPRETER=pypy3
- PYPY=True
- python: "3.5"
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"
env:
- BROWSER=headlesschrome
- SELENIUM=3.141.0
- ROBOTFRAMEWORK=3.1.2
- ROBOT_OPTIONS=--dotted
- INTERPRETER=python3
- GRID=True
before_script:
- if [ "$PYPY" == "True" ]; then
sudo snap install pypy3 --classic;
sudo apt-get install virtualenv;
virtualenv -p pypy3 pypy3ve;
. pypy3ve/bin/activate;
fi
- echo $INTERPRETER
- $INTERPRETER --version
- $INTERPRETER -m pip install .
- $INTERPRETER -m pip install -r requirements-dev.txt;
- 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