Skip to content

Commit

Permalink
Add coverage.xml & Gitlab coverage report. Closes #19.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1kc committed May 25, 2022
1 parent c763a61 commit 104919d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions django_spinproject/bin/enhance-gitlab-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
script:
- script/setup
- script/cibuild
coverage: '/^TOTAL.+?(\d+\%)$/'
artifacts:
reports:
cobertura: coverage.xml
deploy_bleeding:
when: manual
Expand Down
2 changes: 1 addition & 1 deletion django_spinproject/bin/enhance-pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
DJANGO_SETTINGS_MODULE = main.settings
python_files = tests.py test_*.py *_tests.py *_test.py
# feel free to replace `term` with `term:skip-covered`
addopts = --cov=. --cov-report term --cov-report html --cov-config=.coveragerc
addopts = --cov=. --cov-config=.coveragerc --cov-report term --cov-report html --cov-report xml
''',
".coveragerc": '''[run]
omit = */migrations/*, main/*, manage.py
Expand Down

0 comments on commit 104919d

Please sign in to comment.