.gitlab-ci.yml 490 Bytes
Newer Older
1 2 3

stages:
 - unit
Mathieu Giraud's avatar
Mathieu Giraud committed
4
 - demo
5
 - coverage
6 7 8 9 10

unit:
  stage: unit
  script: python3 -m doctest src/should.py

Mathieu Giraud's avatar
Mathieu Giraud committed
11 12
demo:
  stage: demo
13 14 15 16
  script: python3 src/should.py --xml demo/*.should
  artifacts:
    reports:
      junit: should.xml
17 18 19 20 21 22 23 24 25 26

coverage:
  stage: coverage
  before_script:
    - pip3 install coverage
  script:
    - coverage erase
    - coverage run    -m doctest src/should.py
    - coverage run -a src/should.py demo/*.should
    - coverage report
27
  coverage: '/^src/should.py.*?(\d+\%)$/'