summaryrefslogtreecommitdiff
path: root/web-server/.gitlab-ci.yml
blob: d80ba8362d7559144a3062d5322c76247125cac5 (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
image: "python:3.8"

variables:
  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

cache:
  paths:
    - .cache/pip

stages:
  - static-analysis
  - test

static-analysis:
  stage: static-analysis
  script:
    - python --version
    - pip install -r requirements.txt
    - pylint opendc

test:
  stage: test
  script:
    - python --version
    - pip install -r requirements.txt
    - pytest opendc