Commit eac90506 authored by Andreas Valder's avatar Andreas Valder

add test for debian buster and fix linter

parent bc410e11
linter: linter:
image: debian:stretch image: debian:stretch
stage: test stage: test
script: script:
- apt update - apt update
- apt install -y python3 - apt install -y python3
- python3 -V - python3 -V
- uname -a - uname -a
- apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage pylint3 - apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage pylint3
- pylint3 --indent-string='\t' --indent-after-paren=1 --output-format=text *.py | tee pylint.txt - pylint3 --indent-string='\t' --indent-after-paren=1 --max-line-length=140 --output-format=text *.py | tee pylint.txt
artifacts: artifacts:
paths: paths:
- pylint.txt - pylint.txt
unittest: unittest: &unittest
image: debian:stretch image: debian:stretch
stage: test stage: test
script: script:
- apt update - apt update
- apt install -y python3 - apt install -y python3
- python3 -V - python3 -V
- uname -a - uname -a
- apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage - apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage
- python3 -m coverage run runTests.py - python3 -m coverage run runTests.py
- python3 -m coverage report --include "./*" - python3 -m coverage report --include "./*"
- python3 -m coverage report -m --include "./*" > report.txt - python3 -m coverage report -m --include "./*" > report.txt
- python3 -m coverage html --include "./*" - python3 -m coverage html --include "./*"
artifacts: artifacts:
paths: paths:
- htmlcov/* - htmlcov/*
- .coverage - .coverage
- report.txt - report.txt
unittest_buster:
<<: *unittest
image: debian:buster
livetest: livetest:
image: debian:stretch image: debian:stretch
stage: test stage: test
script: script:
- apt update - apt update
- apt install -y python3 - apt install -y python3
- python3 -V - python3 -V
- uname -a - uname -a
- apt install -y python3-requests - apt install -y python3-requests
# - ./tests/urlcheck_sinf.py # - ./tests/urlcheck_sinf.py
deploy_staging: deploy_staging:
image: archlinux/base image: archlinux/base
stage: deploy stage: deploy
script: script:
- pacman --noconfirm -Sy ansible git - pacman --noconfirm -Sy ansible git
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment