.gitlab-ci.yml 1.43 KB
Newer Older
Andreas Valder's avatar
Andreas Valder committed
1
linter:
2 3 4 5 6 7 8 9
  image: debian:stretch
  stage: test
  script:
  - apt update
  - apt install -y python3
  - python3 -V
  - uname -a
  - apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage pylint3
Andreas Valder's avatar
Andreas Valder committed
10
  - pylint3 --indent-string='\t' --indent-after-paren=1 --max-line-length=160 --docstring-min-length=9999 --output-format=text *.py | tee pylint.txt
11 12 13
  artifacts:
      paths:
      - pylint.txt
Andreas Valder's avatar
Andreas Valder committed
14

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
unittest: &unittest
  image: debian:stretch
  stage: test
  script:
  - apt update
  - apt install -y python3
  - python3 -V
  - uname -a
  - apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage
  - python3 -m coverage run runTests.py
  - python3 -m coverage report --include "./*"
  - python3 -m coverage report -m  --include "./*" > report.txt
  - python3 -m coverage html --include "./*"
  artifacts:
      paths:
      - htmlcov/*
      - .coverage
      - report.txt

unittest_buster:
  <<: *unittest
  image: debian:buster
Andreas Valder's avatar
Andreas Valder committed
37 38

livetest:
39 40 41 42 43 44 45 46
  image: debian:stretch
  stage: test
  script:
  - apt update
  - apt install -y python3
  - python3 -V
  - uname -a
  - apt install -y python3-requests
Andreas Valder's avatar
Andreas Valder committed
47
#    - ./tests/urlcheck_sinf.py
48

49
deploy_staging:
50 51 52 53 54
  image: archlinux/base
  stage: deploy
  script:
  - pacman --noconfirm -Sy ansible git