summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 740aa0bd4b7a03088378be9551a9ffa0f69c5688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
image: archlinux/base

before_script:
   - pacman -Syu --needed --noconfirm python-pip git
   - pip install pylint coverage flake8
   - pip install -r requirements.txt
   - python manage.py collectstatic --noinput

lint:
  script:
     - pylint devel main mirrors news packages releng templates todolists visualize *.py
     - flake8 --exclude */migrations/ devel main mirrors news packages releng templates todolists visualize *.py

# TODO: https://docs.gitlab.com/ee/ci/junit_test_reports.html
test:
  script:
     - coverage run --rcfile .coveragerc manage.py test