[master 1/1] produce coverage-report.log and enable coverage in CI

atodorov installerbot-noreply at redhat.com
Mon Oct 12 15:38:17 UTC 2015


From: Alexander Todorov <atodorov at redhat.com>

---
 .gitignore | 2 ++
 Makefile   | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index f936390..a7519b6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,5 @@ updates.img
 updates/
 build/
 .directory
+.coverage
+coverage-report.log
diff --git a/Makefile b/Makefile
index 71c3ebd..047a2dd 100644
--- a/Makefile
+++ b/Makefile
@@ -64,6 +64,7 @@ coverage: check-requires
 	@echo "*** Running unittests with $(COVERAGE) for $(PYTHON) ***"
 	PYTHONPATH=.:tests/ $(COVERAGE) run --branch -m unittest discover -v -s tests/ -p '*_test.py'
 	$(COVERAGE) report --include="blivet/*" --show-missing
+	$(COVERAGE) report --include="blivet/*" > coverage-report.log
 
 check: check-requires
 	PYTHONPATH=. tests/pylint/runpylint.py
@@ -171,7 +172,7 @@ rc-release: scratch-bumpver scratch
 	mock -r $(MOCKCHROOT) --buildsrpm  --spec ./$(SPECFILE) --sources . --resultdir $(PWD) || exit 1
 	mock -r $(MOCKCHROOT) --rebuild *src.rpm --resultdir $(PWD)  || exit 1
 
-ci: check test rc-release
+ci: check coverage rc-release
 	@mkdir -p repo
 	@mv *rpm repo
 


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/b2d923b7649eb790ef58f5d9bb85e6eb1a01d20b


More information about the anaconda-patches mailing list