From 1eccadfc1344b125b6719779859c12e20b1f53ea Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Thu, 2 Jul 2015 12:31:14 +0300 Subject: [PATCH] travis: use Tox for test automation --- .gitignore | 1 + .travis.yml | 6 ++---- tox.ini | 10 ++++++++++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 1a10a8c99..52e9eb7ff 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ locale/ *_trial_temp packages env/ +.tox/ diff --git a/.travis.yml b/.travis.yml index 6b9216cc4..e295adab6 100644 --- 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 new file mode 100644 index 000000000..632113760 --- /dev/null +++ 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