updating travis and tox configs

This commit is contained in:
Roman Mogilatov 2015-03-18 14:50:45 +02:00
parent e817f726c2
commit 8fd471dd39
2 changed files with 28 additions and 6 deletions

View File

@ -1,8 +1,9 @@
language: python
install:
- "pip install ."
- "pip install tox"
- pip install tox
script:
- tox
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=coverage

29
tox.ini
View File

@ -1,15 +1,36 @@
[tox]
envlist = py27
envlist=
dev, coveralls, py26, py27
[testenv]
deps=
unittest2
[testenv:dev]
basepython=python
deps=
{[testenv]deps}
coverage
commands=
coverage erase
coverage run --rcfile=./.coveragerc -m unittest2 discover tests []
coverage html --rcfile=./.coveragerc
[testenv:coveralls]
basepython=python2.7
deps=
{[testenv]deps}
coverage
coveralls
[testenv:py27]
commands=
coverage erase
coverage run --rcfile=./.coveragerc -m unittest2 discover tests []
coveralls
coverage erase
[testenv:py26]
commands=
unit2 discover tests []
[testenv:py27]
commands=
unit2 discover tests []