summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
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 /.gitlab-ci.yml
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.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml29
1 files changed, 27 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