Browse Source

Check coverage for both Python3 and Python2

Gavin Carothers 11 năm trước cách đây
mục cha
commit
b735efe836
2 tập tin đã thay đổi với 15 bổ sung5 xóa
  1. 1 0
      .travis.yml
  2. 14 5
      tox.ini

+ 1 - 0
.travis.yml

@@ -1,6 +1,7 @@
 language: python
 env:
     - TOXENV=cover
+    - TOXENV=cover3
     - TOXENV=py26
     - TOXENV=py27
     # - TOXENV=pypy

+ 14 - 5
tox.ini

@@ -2,7 +2,7 @@
 
 [tox]
 envlist =
-    cover,py26,py27,py32,py33,py34
+    cover,cover3,py26,py27,py32,py33,py34
 
 [testenv]
 commands =
@@ -12,10 +12,6 @@ deps =
     mock >= 0.5.0
 usedevelop = true
 
-[testenv:py33]
-deps =
-    https://github.com/Supervisor/meld3/tarball/master
-
 [testenv:cover]
 basepython =
     python2.6
@@ -28,3 +24,16 @@ deps =
     coverage
     nosexcover
 usedevelop = true
+
+[testenv:cover3]
+basepython =
+    python3.3
+commands =
+    python setup.py nosetests --with-xunit --with-xcoverage --cover-package=supervisor --cover-erase
+deps =
+    meld3 >= 1.0.0
+    mock >= 0.5.0
+    nose
+    coverage
+    nosexcover
+usedevelop = true