Skip to content

Commit

Permalink
Let's try using tox-travis
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmatthews committed Jul 11, 2016
1 parent 7037302 commit ec19ed0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ sudo: false

language: python
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5

addons:
Expand All @@ -18,7 +22,7 @@ before_script:
- export PREFIX=$PWD

install:
- pip install tox
- pip install tox-travis
- pip install coveralls

cache:
Expand Down
41 changes: 23 additions & 18 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,24 @@ exclude = ez_setup.py,.tox,build,docs,.git,__pycache__,versioneer.py,_version.py
max-complexity = 10

[tox]
envlist = setup, py26, py27, py33, py34, py35, pypy, flake8, docs, stats
minversion=2.3.1
envlist =
setup
py{26,27,33,34,35,py}
flake8
pylint
docs
stats

[testenv:py26]
[tox:travis]
2.6 = setup, py26, stats
2.7 = setup, py27, flake8, pylint, docs, stats
3.3 = setup, py33, pylint, stats
3.4 = setup, py34, flake8, pylint, docs, stats
3.5 = setup, py35, pylint, stats
PyPy = setup, pypy, stats

[testenv]
passenv = PREFIX
deps =
-rrequirements.txt
Expand All @@ -20,24 +35,8 @@ deps =
sphinx>=1.3
sphinx_rtd_theme
unittest2
# pylint is unsupported under python 2.6
commands =
coverage run --append setup.py test --quiet

[testenv:pypy]
# don't run pylint under pypy until we fix the VerboseLogger noise there
passenv = PREFIX
deps = {[testenv:py26]deps}
commands = {[testenv:py26]commands}

[testenv]
passenv = PREFIX
deps =
{[testenv:py26]deps}
pylint==1.6.1
commands =
coverage run --append setup.py test --quiet
pylint COT

[testenv:setup]
commands =
Expand All @@ -60,6 +59,12 @@ deps =
mccabe>=0.5.0
commands = flake8 --verbose

[testenv:pylint]
deps =
{[testenv]deps}
pylint==1.6.1
commands = pylint COT

[testenv:docs]
basepython = python
changedir = docs
Expand Down

0 comments on commit ec19ed0

Please sign in to comment.