summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: d11a4d1ef62e84ab064b560d65133886a4ef8afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
stages:
  - code-check
  - tests
  - benchmark

# Cache tox envs between builds
cache:
  paths:
  - testing/.tox/

code-check:
  stage: code-check
  script:
    - cd testing
    - tox -e code-check

tests:
  stage: tests
  image: leapcode/soledad:latest
  services:
    - couchdb
  script:
    - cd testing
    - tox -- --couch-url http://couchdb:5984

benchmark:
  stage: benchmark
  image: leapcode/soledad:latest
  services:
    - couchdb
  script:
    - cd testing
    - tox -e benchmark -- --couch-url http://couchdb:5984
  tags:
    - docker
    - benchmark