summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-09-17 16:02:10 -0300
committerdrebs <drebs@riseup.net>2017-09-17 16:02:10 -0300
commit14b155b33845f27a414f8c8ad0d6828b7301aae9 (patch)
tree0f4bfc91cabd93191544e46e58d4361061efec30 /tox.ini
parentcfff46ff9becdbe5cf48816870e625ed253ecc57 (diff)
[test] split benchmarks in different ci jobs
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini40
1 files changed, 20 insertions, 20 deletions
diff --git a/tox.ini b/tox.ini
index d1e03366..3fa4ed54 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
envlist = py27
-skipsdist=True
+skipsdist = True
[testenv]
basepython = python2.7
@@ -73,23 +73,6 @@ setenv =
TERM=xterm
install_command = pip3 install {opts} {packages}
-[testenv:benchmark]
-usedevelop = True
-deps =
- {[testenv]deps}
-commands =
-# run benchmarks twice: once for time and cpu and a second time for memory
- py.test --subdir=benchmarks {posargs}
- py.test --subdir=benchmarks --watch-memory {posargs}
-passenv = HOST_HOSTNAME
-
-[testenv:responsiveness]
-usedevelop = True
-deps =
- {[testenv:benchmark]deps}
-commands =
- py.test --subdir=responsiveness {posargs}
-
[testenv:code-check]
deps =
pep8
@@ -98,10 +81,27 @@ commands =
pep8
flake8
+[testenv:benchmark-time-cpu]
+usedevelop = True
+deps = {[testenv]deps}
+commands = py.test --subdir=benchmarks {posargs}
+passenv = HOST_HOSTNAME
+
+[testenv:benchmark-memory]
+usedevelop = True
+deps = {[testenv]deps}
+commands = py.test --subdir=benchmarks --watch-memory {posargs}
+passenv = HOST_HOSTNAME
+
+[testenv:responsiveness]
+usedevelop = True
+deps = {[testenv]deps}
+commands = py.test --subdir=responsiveness {posargs}
+passenv = HOST_HOSTNAME
+
[testenv:parallel]
deps =
{[testenv]deps}
pytest-xdist
install_command = pip install {opts} {packages}
-commands =
- py.test {posargs} -n 4
+commands = py.test {posargs} -n 4