-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
53 lines (47 loc) · 1.06 KB
/
.gitlab-ci.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
stages:
- test
- build
lint:
stage: test
image: registry.gitlab.com/mbarkhau/markdown-svgbob/base
script:
- make lint
- make mypy
artifacts:
reports:
junit:
- reports/flake8.xml
paths:
- reports/mypycov/
allow_failure: false
unit:
# NOTE: Resource_group is conservative and can be disabled
# for simple tests. It should be enabled if the tests
# need exclusive access to some common resource. The
# resource_group will prevent multiple pipelines from
# running concurrently.
# resource_group: test-unit
stage: test
image: registry.gitlab.com/mbarkhau/markdown-svgbob/base
script:
- make test
coverage: '/^(TOTAL|src).*?(\d+\%)$/'
artifacts:
reports:
junit:
- reports/pytest.xml
paths:
- reports/testcov/
allow_failure: false
pages:
stage: build
script:
- mkdir -p public/cov
- mkdir -p public/mypycov
- cp -r reports/testcov/* public/cov/
- cp -r reports/mypycov/* public/mypycov/
artifacts:
paths:
- public
only:
- master