Skip to content

Commit d6005eb

Browse files
committed
Make the coverage report downloadable as artifacts of CI job
1 parent d1a374a commit d6005eb

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Diff for: .gitlab-ci.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ before_script:
66
- pip show myapp
77

88
run tests:
9-
only:
10-
- master
11-
tags:
12-
- python3
13-
- tests
14-
script:
9+
only:
10+
- master
11+
tags:
12+
- python3
13+
- tests
14+
script:
1515
- cd /workspace
1616
- python -m pytest
17-
coverage: '/TOTAL.*\s+(\d+%)$/'
17+
artifacts:
18+
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
19+
paths:
20+
- /workspace/coverage/
21+
when: on_success
22+
expire_in: 1 week
23+
coverage: '/TOTAL.*\s+(\d+%)$/'

0 commit comments

Comments
 (0)