From 4aaea174165133a5b8657f30db30e4bb733579ac Mon Sep 17 00:00:00 2001 From: Matthias Schmitz Date: Fri, 21 Aug 2015 15:55:58 +0200 Subject: [PATCH 1/3] Only test with py27; add coverage --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index ca12d56..9f872d1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] -envlist = py26,py27,pypy +envlist = py27 [testenv] deps=nose mock coverage -commands=nosetests +commands=nosetests --with-coverage --cover-package=oca From 919634b6b4819b6f9b1ca72eba4990fabc7126e5 Mon Sep 17 00:00:00 2001 From: Matthias Schmitz Date: Fri, 21 Aug 2015 16:09:03 +0200 Subject: [PATCH 2/3] Use tox instead of "python setup.py test" --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 637f3d0..5fd1a81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ language: python python: - "2.7" -script: python setup.py test +script: tox From c0c0bffebf1de37e4da7f2ac4721bb3c1b2edd97 Mon Sep 17 00:00:00 2001 From: Matthias Schmitz Date: Fri, 21 Aug 2015 16:26:57 +0200 Subject: [PATCH 3/3] Install tox before running --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5fd1a81..30214bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: python python: - "2.7" +install: + - pip install tox script: tox