.gitlab-ci.yml 920 Bytes
Newer Older
Andreas Valder's avatar
Andreas Valder committed
1
unittest:
2
    image: debian:stretch
Andreas Valder's avatar
Andreas Valder committed
3 4
    stage: test
    script:
5
    - apt update
6
    - apt install python3
7 8
    - python3 -V
    - uname -a
Andreas Valder's avatar
Andreas Valder committed
9
    - 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
10
    - python3 -m coverage run tests.py
Andreas Valder's avatar
Andreas Valder committed
11 12
    - python3 -m coverage report --include "./*"
    - python3 -m coverage report -m  --include "./*" > report.txt
Andreas Valder's avatar
Andreas Valder committed
13
    - python3 -m coverage html --include "./*"
Andreas Valder's avatar
Andreas Valder committed
14 15
    artifacts:
        paths:
Andreas Valder's avatar
Andreas Valder committed
16 17
        - htmlcov/*
        - .coverage
Andreas Valder's avatar
Andreas Valder committed
18 19 20
        - report.txt

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

31
deploy_staging:
32 33 34 35 36
    image: archlinux
    stage: deploy
    script:
    - pacman -S ansible git