summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: dd4e46053a8e658fdd646d94f67a3124a7c4efc6 (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 perf -- --couch-url http://couchdb:5984
  tags:
    - docker
    - benchmark