Verified Commit e8c3530b authored by Robin Obůrka's avatar Robin Obůrka Committed by Martin Prudek

Add GitLab CI configuration file

parent ecd0637d
image: registry.labs.nic.cz/turris/sentinel/sn
stages:
- test
- coverage_report
before_script:
- pip3 install .
- pip3 install .[tests]
run_tests:
stage: test
script:
- pytest -v tests
coverage_report:
stage: coverage_report
script:
- rm -rf public
- mkdir public
- pytest --cov=certapi -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