summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 735705695eed4c973e09a776c63a281e987ab8e4 (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
image: python:latest

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

cache:
  paths:
    - .cache/pip

stages:
  - build
  - static-analysis
  - test

build:
  stage: build
  script:
    - python --version
    - python setup.py install

static-analysis:
  stage: static-analysis
  allow_failure: true
  script:
    - pylint opendc

test:
  stage: test
  script:
    - pytest