Commit a420e742 authored by Robin Obůrka's avatar Robin Obůrka

Add gitlab-ci command file

parent 97bd2c6c
image: registry.labs.nic.cz/turris/sentinel/sn
stages:
- test
- coverage_report
before_script:
- /etc/init.d/rsyslog start
- pip3 install .
- pip3 install .[tests]
run_tests:
stage: test
script:
- pytest -v tests || pytest -v tests
coverage_report:
stage: coverage_report
script:
- rm -rf public
- mkdir public
- pytest --cov=sn -v tests || pytest --cov=sn -v tests
- coverage html --directory public
artifacts:
when: on_success
paths:
- public
coverage: '/^TOTAL.* (\d+)%$/'
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