Skip to content

Commit 17ffad5

Browse files
authored
Merge pull request buriy#134 from adbar/patch-1
Extended travis config: - Python versions added (3.9, pypy) - OS added (MacOS, 2 different versions)
2 parents 615ce80 + baf03e0 commit 17ffad5

2 files changed

Lines changed: 56 additions & 10 deletions

File tree

.travis.yml

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,57 @@
11
language: python
2+
os: linux
3+
cache: pip
24

3-
python:
4-
- 2.7
5-
- 3.5
6-
- 3.6
7-
- 3.7
8-
- 3.8
5+
matrix:
6+
include:
7+
- name: "Python 2.7 on Linux"
8+
python: 2.7
9+
env: PIP=pip
10+
- name: "Python 3.5 on Linux"
11+
python: 3.5
12+
- name: "Python 3.6 on Linux"
13+
python: 3.6
14+
- name: "Python 3.7 on Linux"
15+
python: 3.7
16+
- name: "Python 3.8 on Linux"
17+
dist: xenial
18+
python: 3.8
19+
- name: "Python 3.9 Nightly on Linux"
20+
dist: bionic
21+
python: nightly
22+
- name: "Pypy on Linux"
23+
python: pypy
24+
env: PIP=pip
25+
- name: "Pypy 3 on Linux"
26+
python: pypy3
27+
- name: "Python 3.7 on older macOS"
28+
os: osx
29+
osx_image: xcode9.4
30+
language: shell
31+
env: TOXENV=py37
32+
before_install:
33+
- sw_vers
34+
- python3 --version
35+
- pip3 --version
36+
- name: "Python 3.7 on macOS"
37+
os: osx
38+
osx_image: xcode11
39+
language: shell
40+
env: TOXENV=py37
41+
before_install:
42+
- sw_vers
43+
- python3 --version
44+
- pip3 --version
45+
allow_failures:
46+
- python: nightly
47+
- python: pypy
48+
- python: pypy3
49+
- os: osx
950

1051
install:
11-
- travis_retry pip install -U pip wheel tox-travis
12-
- travis_retry pip install -U -r requirements.txt -e ".[test]"
52+
- if [ $PIP ]; then true; else PIP=pip3; fi
53+
- travis_retry $PIP install -U pip wheel tox-travis
54+
- travis_retry $PIP install -U -r requirements.txt -e ".[test]"
1355

1456
script:
1557
- tox

tox.ini

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, py35, py36, py37, py38, doc
7+
envlist =
8+
py{27,35,36,37,38,py,py3}, doc
9+
skip_missing_interpreters =
10+
True
811

912
[testenv]
1013
deps =
@@ -19,7 +22,8 @@ deps =
1922
# requires a Compiler and the build dependencies), you can download
2023
# it from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml and install it via
2124
# $PYTHONDIR\Scripts\pip.exe install *.whl
22-
sitepackages=True
25+
sitepackages=
26+
True
2327
commands =
2428
pip install -r requirements.txt -e ".[test]"
2529
py.test

0 commit comments

Comments
 (0)