commit 306756b42dcdfc1fdf9092274d819bc709d504d4 parent ff46d6b7d4368f61bb7832ae504a79ca817483f4 Author: ThomasV <electrumdev@gmail.com> Date: Thu, 2 Jul 2015 16:55:25 +0200 Merge pull request #1334 from romanz/master travis: use Tox for test automation Diffstat:
M | .gitignore | | | 1 | + |
M | .travis.yml | | | 6 | ++---- |
A | tox.ini | | | 10 | ++++++++++ |
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -15,3 +15,4 @@ locale/ *_trial_temp packages env/ +.tox/ diff --git a/.travis.yml b/.travis.yml @@ -3,8 +3,6 @@ language: python python: - "2.7" install: - - "pip install ." - - "pip install coverage" + - pip install tox script: - - "coverage run --source=lib -m py.test -v" - - "coverage report" + - tox diff --git a/tox.ini b/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27 + +[testenv] +deps= + pytest + coverage +commands= + coverage run --source=lib -m py.test -v + coverage report