.gitlab-ci.yml 762 Bytes
Newer Older
Andreas Valder's avatar
Andreas Valder committed
1 2 3 4 5 6
before_script:
    - apt update
    - apt install -y python3
    - python3 -V
    - uname -a

Andreas Valder's avatar
Andreas Valder committed
7 8 9 10
unittest:
    image: debian:stretch
    stage: test
    script:
Andreas Valder's avatar
Andreas Valder committed
11
    - apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage
Andreas Valder's avatar
Andreas Valder committed
12
    - python3 -m coverage run tests.py
Andreas Valder's avatar
Andreas Valder committed
13 14
    - python3 -m coverage report --include "./*"
    - python3 -m coverage report -m  --include "./*" > report.txt
Andreas Valder's avatar
Andreas Valder committed
15
    - python3 -m coverage html --include "./*"
Andreas Valder's avatar
Andreas Valder committed
16 17
    artifacts:
        paths:
Andreas Valder's avatar
Andreas Valder committed
18 19
        - htmlcov/*
        - .coverage
Andreas Valder's avatar
Andreas Valder committed
20 21 22 23 24 25
        - report.txt

livetest:
    image: debian:stretch
    stage: test
    script:
Andreas Valder's avatar
Andreas Valder committed
26
    - apt install -y python3-requests
Andreas Valder's avatar
Andreas Valder committed
27
    - ./tests/urlcheck_sinf.py