mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
ci: Allow gitlab to parse test coverage results
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
a6fc466cec
commit
8f2876b1e7
@ -21,9 +21,10 @@ run-unit-tests:
|
|||||||
- echo "tester:password" | chpasswd
|
- echo "tester:password" | chpasswd
|
||||||
- cp -r . /home/tester/plinth
|
- cp -r . /home/tester/plinth
|
||||||
- chown -R tester:tester /home/tester/plinth
|
- chown -R tester:tester /home/tester/plinth
|
||||||
- su -c "cd ~/plinth; py.test-3 --cov=plinth --cov-report=html" tester
|
- su -c "cd ~/plinth; py.test-3 --cov=plinth --cov-report=html --cov-report=term" tester
|
||||||
- cp -r /home/tester/plinth/htmlcov test-coverage-report
|
- cp -r /home/tester/plinth/htmlcov test-coverage-report
|
||||||
|
|
||||||
|
coverage: '/^TOTAL\s+.*\s+(\d+\.\d+%)$/'
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- test-coverage-report/*
|
- test-coverage-report/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user