summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 2d7e12b8c6c94c9b5280fd90e8e252be94467219 (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
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
    - pip show -f pylint
    - export PATH=$HOME/.local/bin:$PATH

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

test:
  stage: test
  script:
    - pytest