]> Devi Nivas Git - chevron.git/commitdiff
Move coverage into tox and ignore coverage on py32
authorNoah Morrison <noah@morrison.ph>
Thu, 15 Jun 2017 03:35:04 +0000 (23:35 -0400)
committerNoah Morrison <noah@morrison.ph>
Thu, 15 Jun 2017 03:35:04 +0000 (23:35 -0400)
The coverage command fails on python3.2 for some reason.
Whatever, I'll just ignore it then.

.travis.yml
tox.ini

index 1cbd5642c0fe2f94248cf87888737b408f0dda2c..b579d3db7cb0c5e40df3dde80304a9a5fc96de20 100644 (file)
@@ -8,11 +8,13 @@ python:
   - "3.3"
   - "3.4"
   - "3.5"
+  - "pypy"
 
 matrix:
   include:
     - python: 3.5
-      env: TOXENV=flake8
+      env:
+      - TOXENV=flake8
 
 install:
   - pip install coveralls
@@ -20,8 +22,6 @@ install:
 
 script:
   - tox
-  - coverage run --source=chevron ./test_spec.py
-  - coverage report -m
 
 after_success:
   - coveralls
diff --git a/tox.ini b/tox.ini
index 547d98bdb4df66f1b1497e0972aec1f3889acac8..48143334fb35acd562d3a3569978ce2c103a2d87 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,13 @@
 [tox]
-envlist = py26, py27, py33, py34, pypy, flake8
+envlist = py26, py27, py32, py33, py34, py35, pypy, flake8
 
 [testenv]
+deps = coverage
+commands =
+    coverage run --source={toxinidir}/chevron {toxinidir}/test_spec.py
+    coverage report -m
+
+[testenv:py32]
 commands = python {toxinidir}/test_spec.py
 
 [testenv:flake8]