Skip to content

Commit 4faf9bf

Browse files
committed
simplify test configuration, support python 3.6 and pypy3
1 parent 5e8fae3 commit 4faf9bf

3 files changed

Lines changed: 16 additions & 33 deletions

File tree

.travis.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
language: python
2-
python: 3.6
3-
env:
4-
# Avoid testing pypy on travis until the following issue is fixed:
5-
# https://github.com/travis-ci/travis-ci/issues/4756
6-
#- TOX_ENV=pypy
7-
- TOX_ENV=py35
8-
- TOX_ENV=py34
9-
- TOX_ENV=py33
10-
- TOX_ENV=py27
11-
- TOX_ENV=docs
2+
python:
3+
- pypy
4+
- pypy3.3-5.2-alpha1
5+
- 2.7
6+
- 3.3
7+
- 3.4
8+
- 3.5
129
install:
13-
- pip install coveralls tox
14-
script: tox -e $TOX_ENV
10+
- pip install coveralls tox-travis
11+
script: tox
1512
after_success: coveralls

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
'Programming Language :: Python :: 3.3',
3939
'Programming Language :: Python :: 3.4',
4040
'Programming Language :: Python :: 3.5',
41+
'Programming Language :: Python :: 3.6',
4142
'Programming Language :: Python :: Implementation :: PyPy'
4243
),
4344
)

tox.ini

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
[tox]
2-
envlist = pypy,py35,py34,py33,py27,docs
2+
envlist = pypy,pypy3,py36-docs,py36,py35,py34,py33,py27
33

44
[testenv]
5-
commands = coverage run --source=fitbit setup.py test
5+
changedir =
6+
docs: {toxinidir}/docs
7+
commands =
8+
py{py,py3,36,35,34,33,27}: coverage run --source=fitbit setup.py test
9+
docs: sphinx-build -W -b html docs docs/_build
610
deps = -r{toxinidir}/requirements/test.txt
7-
8-
[testenv:pypy]
9-
basepython = pypy
10-
11-
[testenv:py35]
12-
basepython = python3.5
13-
14-
[testenv:py34]
15-
basepython = python3.4
16-
17-
[testenv:py33]
18-
basepython = python3.3
19-
20-
[testenv:py27]
21-
basepython = python2.7
22-
23-
[testenv:docs]
24-
basepython = python3.4
25-
commands = sphinx-build -W -b html docs docs/_build

0 commit comments

Comments
 (0)