.gitlab-ci.yml 869 Bytes
Newer Older
Andreas Valder's avatar
Andreas Valder committed
1
unittest:
2
    image: python:3-stretch
Andreas Valder's avatar
Andreas Valder committed
3
4
    stage: test
    script:
5
6
7
    - apt update
    - python3 -V
    - uname -a
Andreas Valder's avatar
Andreas Valder committed
8
    - 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
9
    - 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
        - report.txt

livetest:
20
    image: python:3-stretch
Andreas Valder's avatar
Andreas Valder committed
21
22
    stage: test
    script:
23
24
25
    - apt update
    - python3 -V
    - uname -a
Andreas Valder's avatar
Andreas Valder committed
26
    - apt install -y python3-requests
27
28
29
30
31
32
33
34
    - ./tests/urlcheck_sinf.py

deploytotest:
    image: archlinux
    stage: deploy
    script:
    - pacman -S ansible git