From 8f2876b1e7be827cabe76b1cae7e66790033cf9f Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 10 Mar 2019 18:22:55 -0700 Subject: [PATCH] ci: Allow gitlab to parse test coverage results Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cc18ae2a3..9a61aab16 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,9 +21,10 @@ run-unit-tests: - echo "tester:password" | chpasswd - cp -r . /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 + coverage: '/^TOTAL\s+.*\s+(\d+\.\d+%)$/' artifacts: paths: - test-coverage-report/*