Skip to content

Commit ca2b7a1

Browse files
committed
use tox extras key for testing and add pypy3
1 parent 8111dd6 commit ca2b7a1

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

Diff for: .travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ matrix:
2222
sudo: true
2323
- python: pypy
2424
env: TOXENV=pypy
25+
- python: pypy3
26+
env: TOXENV=pypy3
2527
- python: 3.5
26-
env: TOXENV=py2-cover,py3-cover,coverage
28+
env: TOXENV=py27-cover,py35-cover,coverage
2729
- python: 3.5
2830
env: TOXENV=docs
2931
allow_failures:

Diff for: tox.ini

+12-20
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,40 @@
11
[tox]
22
envlist =
3-
py27,py34,py35,py36,py37,pypy,
3+
py27,py34,py35,py36,py37,pypy,pypy3,
44
docs,
5-
{py2,py3}-cover,coverage
5+
{py27,py35}-cover,coverage
66

77
[testenv]
8-
# Most of these are defaults but if you specify any you can't fall back
9-
# to defaults for others.
10-
basepython =
11-
py27: python2.7
12-
py34: python3.4
13-
py35: python3.5
14-
py36: python3.6
15-
py37: python3.7
16-
py38: python3.8
17-
pypy: pypy
18-
py2: python2.7
19-
py3: python3.5
20-
218
commands =
22-
pip install waitress[testing]
239
nosetests --with-xunit --xunit-file=nosetests-{envname}.xml {posargs:}
2410

11+
extras =
12+
testing
13+
2514
[testenv:docs]
2615
basepython = python3.5
2716
whitelist_externals = make
2817
commands =
29-
pip install waitress[docs]
3018
make -C docs clean html epub BUILDDIR={envdir} "SPHINXOPTS=-W -E"
19+
extras =
20+
docs
3121

3222
[py-cover]
3323
commands =
34-
pip install waitress[testing]
3524
coverage run --source=waitress --parallel-mode {envbindir}/nosetests
3625
coverage combine
3726
coverage xml -o {envname}.xml
3827

39-
[testenv:py2-cover]
28+
extras =
29+
testing
30+
31+
[testenv:py27-cover]
4032
commands =
4133
{[py-cover]commands}
4234
setenv =
4335
COVERAGE_FILE=.coverage.py2
4436

45-
[testenv:py3-cover]
37+
[testenv:py35-cover]
4638
commands =
4739
{[py-cover]commands}
4840
setenv =

0 commit comments

Comments
 (0)