From 8fd471dd3993eb761ec883ef33c1d3a23a425b87 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Wed, 18 Mar 2015 14:50:45 +0200 Subject: [PATCH] updating travis and tox configs --- .travis.yml | 5 +++-- tox.ini | 29 +++++++++++++++++++++++++---- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index b1afbba0..8f6b4b78 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,9 @@ language: python install: - - "pip install ." - - "pip install tox" + - pip install tox script: - tox env: + - TOXENV=py26 - TOXENV=py27 + - TOXENV=coverage diff --git a/tox.ini b/tox.ini index 2f7e4741..e59de348 100644 --- a/tox.ini +++ b/tox.ini @@ -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 []