.gitlab-ci.yml 783 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
    - python3 -m coverage report --include "./*"
    - python3 -m coverage report -m  --include "./*" > report.txt
Andreas Valder's avatar
Andreas Valder committed
12
    - python3 -m coverage html --include "./*"
Andreas Valder's avatar
Andreas Valder committed
13 14
    artifacts:
        paths:
Andreas Valder's avatar
Andreas Valder committed
15 16
        - htmlcov/*
        - .coverage
Andreas Valder's avatar
Andreas Valder committed
17 18 19 20 21 22 23 24 25 26 27
        - report.txt

livetest:
    image: debian:stretch
    stage: test
    script:
    - apt update
    - apt install -y python3 python3-requests
    - python3 -V
    - uname -a
    - ./tests/urlcheck_sinf.py