-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
54 lines (47 loc) · 1.26 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
language: python
dist: trusty
matrix:
include:
- python: 3.5
env:
- PYTHON_VERSION=python3.5
- TOXENV=py35
- python: 3.6
env:
- PYTHON_VERSION=python3.6
- TOXENV=py36
- python: 3.7
env:
- PYTHON_VERSION=python3.7
- TOXENV=py37
dist: xenial
sudo: true
- python: 3.8-dev
env:
- PYTHON_VERSION=python3.8
- TOXENV=py38
dist: xenial
sudo: true
- python: 3.6
env:
- PYTHON_VERSION=python3.6
- TOXENV=style
allow_failures:
- env: TOXENV=py38
install:
- pip install tox
before_script:
# Install chromedriver - https://sites.google.com/a/chromium.org/chromedriver/
# This is not provided by Travis, but is needed by Selenium
- wget -N http://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- chmod +x chromedriver
- sudo mv chromedriver /usr/bin
# Make chrome available as "chrome"
- sudo ln -s /usr/bin/google-chrome-stable /usr/bin/chrome
- echo "Using chrome version $(chrome --version) from $(which chrome)"
- echo "Using chromedriver version $(chromedriver --version) from $(which chromedriver)"
script:
- export SPLINTER_WEBDRIVER=chrome
- export TRAVIS=true
- tox -e $TOXENV