.gitlab-ci.yml 657 Bytes
Newer Older
1 2 3 4
image: registry.labs.nic.cz/turris/pyuci

stages:
  - test
5
  - pages
6

Karel Koci's avatar
Karel Koci committed
7
pytest:
8 9 10 11 12 13
  stage: test
  before_script:
    - pip3 install .
    - export LD_LIBRARY_PATH=/usr/local/lib
  script:
    - python3 -m pytest tests
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

# Let's generate coverage only using Python3
pages:
  stage: pages
  before_script:
    - COVERAGE=y python3 setup.py install
    - export LD_LIBRARY_PATH=/usr/local/lib
    - python3 -m pytest tests
  script:
    - lcov --capture --no-external --base-directory . --directory build/temp.* --output-file coverage.info
    - genhtml coverage.info --output-directory public/coverage-c
  artifacts:
    when: on_success
    paths:
      - public