[tor-commits] [sbws/master] Use install_command for all testenv, add unit env
juga at torproject.org
juga at torproject.org
Mon Sep 24 20:30:36 UTC 2018
commit 205a4fa9c185d9d6c91457ad51cfb8d6a38f8148
Author: juga0 <juga at riseup.net>
Date: Fri Sep 14 10:46:19 2018 +0000
Use install_command for all testenv, add unit env
While a process-dependency-links is needed, use it for all the
envs.
Add a unit env to run unit tests.
---
tox.ini | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tox.ini b/tox.ini
index d05e416..3a9fb99 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,14 +1,19 @@
[tox]
skip_missing_interpreters = True
-envlist = clean, lint, py35, py36, integration, stats
+envlist = clean, lint, py35, py36, unit, integration, stats
[travis]
python =
- 3.5: lint, py35, integration
+ 3.5: lint, py35, unit, integration
3.6: py36, integration
[testenv]
+# install_command can be removed when --process-dependency-links is not
+# needed anymore, and this section uncommented
install_command = pip install --process-dependency-links {opts} {packages}
+
+
+[testenv:unit]
deps = .[test]
commands =
coverage run -a --rcfile={toxinidir}/.coveragerc --source=sbws -m pytest \
More information about the tor-commits
mailing list