From a7ffb49e1169c93af3b728f5db1a5e16e6231590 Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 8 Sep 2016 12:44:53 -0300 Subject: [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. --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++-- testing/tox.ini | 1 + 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] -- cgit v1.2.3