.gitlab-ci.yml 464 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
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+)%$/'