.gitlab-ci.yml 434 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 13
demo:
  stage: demo
  script: python3 src/should.py demo/*.should
14 15 16 17 18 19 20 21 22 23

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
24
  coverage: '/^src/should.py.*?(\d+\%)$/'