.gitlab-ci.yml 593 Bytes
Newer Older
Andreas Valder's avatar
Andreas Valder committed
1 2 3 4 5
unittest:
    image: debian:stretch
    stage: test
    script:
    - apt update
Andreas Valder's avatar
Andreas Valder committed
6
    - apt install -y sqlite3 python3 locales-all  python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage git
Andreas Valder's avatar
Andreas Valder committed
7 8 9
    - python3 -V
    - uname -a
    - python3 -m coverage run tests.py
Andreas Valder's avatar
Andreas Valder committed
10 11 12
    - python3 -m coverage report --include "./*"
    - python3 -m coverage report -m  --include "./*" > report.txt
    - python3 -m coverage  --include "./*" html
Andreas Valder's avatar
Andreas Valder committed
13 14
    artifacts:
        paths:
Andreas Valder's avatar
Andreas Valder committed
15 16 17
        - htmlcov/*
        - .coverage
        - report.txt