summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-03-22 11:24:42 +0100
committervarac <varacanero@zeromail.org>2017-04-03 15:17:01 +0200
commit109608e8c1051e8569f06f02f477412d16e4ef66 (patch)
treea94280140017e4d7e34e94c9915a54652982b4b3 /testing
parent6067f8c001d524d29ccc4287a5f2efec90fa5004 (diff)
Post benchmark results to elastticsearch
In order to do this from CI, please create a secret variable (at i.e. https://0xacab.org/varac/soledad/settings/ci_cd) called PYTEST_OPTS and use this example: --benchmark-autosave --benchmark-storage="elasticsearch+https://USER:PASSWORD@moose.leap.se:9200"
Diffstat (limited to 'testing')
-rw-r--r--testing/tox.ini5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/tox.ini b/testing/tox.ini
index d959db0a..d800d988 100644
--- a/testing/tox.ini
+++ b/testing/tox.ini
@@ -62,7 +62,10 @@ install_command = pip3 install {opts} {packages}
[testenv:benchmark]
deps =
{[testenv]deps}
- pytest-benchmark
+ #pytest-benchmark>=3.1.0a2
+ git+https://github.com/drebs/pytest-benchmark.git@use-netrc-file
+ elasticsearch
+ certifi
commands = py.test --benchmark-only {posargs}
[testenv:code-check]