Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tox.ini

Issue 29968569: Issue 4014 - Publish python-abp on PyPI (Closed) Base URL: https://hg.adblockplus.org/python-abp/
Patch Set: Created Dec. 27, 2018, 11:31 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« setup.py ('K') | « tests/test_fs_source.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tox.ini
===================================================================
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py27,py35,py36,pypy,coverage,flake8
+envlist = py27,py35,py36,pypy,coverage2,coverage3,flake8
[flake8]
ignore = D107, N801, W503
@@ -11,16 +11,27 @@
commands =
py.test tests
-[testenv:coverage]
+# We have to install our package in development mode so that pytest-cov can
+# find the .coverage and .coveragerc files.
+usedevelop = true
+
+[testenv:coverage2]
+basepython = python2
+setenv = PY_VER = 2
deps =
pytest-cov
mock
commands =
py.test --cov=abp --cov-report=term-missing tests
-# We have to install our package in development mode
-# so that pytest-cov can find the .coverage file.
-usedevelop = true
+[testenv:coverage3]
Sebastian Noack 2018/12/28 00:22:51 What's the point of using a separate environment f
rhowell 2018/12/28 21:50:08 By default, tox only checks coverage for the versi
Sebastian Noack 2018/12/28 22:39:02 If you just run coverage reports for every environ
rhowell 2018/12/29 01:30:51 Done.
+basepython = python3
+setenv = PY_VER = 3
+deps =
+ pytest-cov
+ mock
+commands =
+ py.test --cov=abp --cov-report=term-missing tests
[testenv:flake8]
basepython = python3
« setup.py ('K') | « tests/test_fs_source.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld