]> git.phdru.name Git - ppu.git/commitdiff
Test(tox): Refactor `tox.ini`: combine environments
authorOleg Broytman <phd@phdru.name>
Fri, 8 Jan 2021 14:10:04 +0000 (17:10 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 8 Jan 2021 14:10:12 +0000 (17:10 +0300)
tox.ini

diff --git a/tox.ini b/tox.ini
index eda0f9f8374030101e2a5aa7b5394e329e9e6e9c..9f7265714b265b4b3f0986146697ce74aec650a2 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -19,58 +19,12 @@ commands =
 deps =
     -rdevscripts/requirements/requirements_tests.txt
 
-[general]
-commands =
-    {envpython} -m pytest
-
-[testenv:py27]
-commands =
-    {[testenv]commands}
-    {[general]commands}
-
-[testenv:py34]
-commands =
-    {[testenv]commands}
-    {[general]commands}
-
-[testenv:py35]
-commands =
-    {[testenv]commands}
-    {[general]commands}
-
-[testenv:py36]
+[testenv:{py27,py34,py35,py36,py37,py38,py39,pypy}]
 commands =
     {[testenv]commands}
-    {[general]commands}
-
-[testenv:py37]
-commands =
-    {[testenv]commands}
-    {[general]commands}
-
-[testenv:py38]
-commands =
-    {[testenv]commands}
-    {[general]commands}
-
-[testenv:py39]
-commands =
-    {[testenv]commands}
-    {[general]commands}
-
-[testenv:pypy]
-commands =
-    {[testenv]commands}
-    {[general]commands}
-
-[testenv:py27-flake8]
-deps =
-    flake8
-commands =
-    {[testenv]commands}
-    flake8
+    {envpython} -m pytest
 
-[testenv:py39-flake8]
+[testenv:{py27,py34,py35,py36,py37,py38,py39}-flake8]
 deps =
     flake8
 commands =