Tweak CI script to have a Git name and email as this is now needed for unit testing.
This commit is contained in:
parent
d3732aef2f
commit
225ee5bb82
1 changed files with 4 additions and 0 deletions
|
|
@ -125,6 +125,10 @@ pytest:
|
||||||
stage: testing
|
stage: testing
|
||||||
extends: .python
|
extends: .python
|
||||||
script:
|
script:
|
||||||
|
# Our unit tests create fake Git repositories. This doesn't work unless
|
||||||
|
# Git is configured with a name and email.
|
||||||
|
- git config --global user.name "Sir Unit of Test"
|
||||||
|
- git config --global user.email "fake@email.no"
|
||||||
- pytest
|
- pytest
|
||||||
# --gitlab-code-quality-report=pytest-warnings.json # can restore when it installs ok
|
# --gitlab-code-quality-report=pytest-warnings.json # can restore when it installs ok
|
||||||
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue