.gitlab-ci.yml 433 Bytes
Newer Older
Sli's avatar
Sli committed
1 2 3 4 5 6
stages:
  - setup
  - test

setup:
  stage: setup
Skia's avatar
Skia committed
7
  script:
Skia's avatar
Skia committed
8 9
  - apt-get update
  - apt-get install -y gettext
Skia's avatar
Skia committed
10
  - pip install -r requirements.txt
Sli's avatar
Sli committed
11 12 13 14

test:
  stage: test
  script:
Skia's avatar
Skia committed
15 16 17 18 19 20 21 22
  - pip install coverage
  - ./manage.py compilemessages
  - coverage run ./manage.py test
  - coverage html
  - coverage report
  artifacts:
    paths:
      - coverage_report/
Sli's avatar
Sli committed
23 24 25 26 27 28

black:
  stage: test
  script:
    - pip install black
    - black --check .