summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-09-08 12:44:53 -0300
committerdrebs <drebs@leap.se>2016-09-09 07:41:27 -0300
commita7ffb49e1169c93af3b728f5db1a5e16e6231590 (patch)
tree0e73f0cc7c2a1d59a7fcffa94c163a40b69f2cab
parentbf21811b18dad6f562357037ae3d335ac59b5746 (diff)
[test] add tagged perf job for gitlab-ci
In order to configure performance tests to run in a specific machine we need to add a tagged job to .gitlab-ci.yml file. That job will only execute the perf tests, and then we can have runners that will only run those jobs.
-rw-r--r--.gitlab-ci.yml29
-rw-r--r--testing/tox.ini1
2 files changed, 28 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 11c482b5..76d22b3c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,31 @@
+stages:
+ - syntax
+ - tests
+ - benchmark
+
+syntax:
+ stage: syntax
+ script:
+ - cd testing
+ - tox -e pep8
+
tests:
+ stage: tests
+ image: leapcode/soledad:1.0
+ services:
+ - couchdb
+ script:
+ - cd testing
+ - tox -- --couch-url http://couchdb:5984
+
+benchmark:
+ stage: benchmark
image: leapcode/soledad:1.0
services:
- - couchdb
+ - couchdb
script:
- - cd testing; tox -- --couch-url http://couchdb:5984 && tox -e pep8
+ - cd testing
+ - tox -e perf -- --couch-url http://couchdb:5984
+ tags:
+ - docker
+ - benchmark
diff --git a/testing/tox.ini b/testing/tox.ini
index 88ca9fcc..231b2a9a 100644
--- a/testing/tox.ini
+++ b/testing/tox.ini
@@ -30,6 +30,7 @@ install_command = pip install {opts} {packages}
deps =
{[testenv]deps}
pytest-benchmark
+basepython = python2.7
commands = py.test tests/perf {posargs}
[testenv:pep8]