.gitlab-ci.yml 702 Bytes
Newer Older
Sli's avatar
Sli committed
1 2 3
stages:
  - test

Sli's avatar
Sli committed
4 5
test:
  stage: test
Skia's avatar
Skia committed
6
  script:
Skia's avatar
Skia committed
7
  - apt-get update
Sli's avatar
Sli committed
8
  - apt-get install -y gettext python3-xapian libgraphviz-dev
9 10 11
  - pushd /usr/lib/python3/dist-packages/xapian && ln -s _xapian* _xapian.so && popd
  - export PYTHONPATH="/usr/lib/python3/dist-packages:$PYTHONPATH"
  - python -c 'import xapian' # Fail immediately if there is a problem with xapian
Skia's avatar
Skia committed
12
  - pip install -r requirements.txt
Sli's avatar
Sli committed
13
  - pip install coverage
Skia's avatar
Skia committed
14 15 16 17
  - ./manage.py compilemessages
  - coverage run ./manage.py test
  - coverage html
  - coverage report
18 19
  - cd doc
  - make html # Make documentation
Skia's avatar
Skia committed
20 21 22
  artifacts:
    paths:
      - coverage_report/
Sli's avatar
Sli committed
23 24 25 26

black:
  stage: test
  script:
Sli's avatar
Sli committed
27
    - pip install black
Sli's avatar
Sli committed
28
    - black --check .