summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-06-02 07:38:06 -0400
committerNed Batchelder <ned@nedbatchelder.com>2022-06-02 07:38:06 -0400
commitf22072a1677c25a4cf48888756809bb1453c40b5 (patch)
tree9f1a465fcd5c72b187983ff2573afc9403e1aa2c /Makefile
parentaef87253860e8e1d88d7fe8f47a61f5e94cdc3c1 (diff)
downloadpython-coveragepy-git-f22072a1677c25a4cf48888756809bb1453c40b5.tar.gz
build: move sample html steps into Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 79a1348a..b5fb1063 100644
--- a/Makefile
+++ b/Makefile
@@ -106,6 +106,29 @@ workflows: ## Run cog on the workflows to keep them up-to-date.
prebuild: css workflows cogdoc ## One command for all source prep.
+##@ Sample HTML reports
+
+.PHONY: _sample_cog_html sample_html sample_html_beta
+
+_sample_cog_html: clean
+ python -m pip install -e .
+ cd ~/cog/trunk; \
+ rm -rf htmlcov; \
+ PYTEST_ADDOPTS= coverage run --branch --source=cogapp -m pytest -k CogTestsInMemory; \
+ coverage combine; \
+ coverage html
+
+sample_html: _sample_cog_html ## Generate sample HTML report.
+ rm -f doc/sample_html/*.*
+ cp -r ~/cog/trunk/htmlcov/ doc/sample_html/
+ rm doc/sample_html/.gitignore
+
+sample_html_beta: _sample_cog_html ## Generate sample HTML report for a beta release.
+ rm -f doc/sample_html_beta/*.*
+ cp -r ~/cog/trunk/htmlcov/ doc/sample_html_beta/
+ rm doc/sample_html_beta/.gitignore
+
+
##@ Kitting: making releases
.PHONY: kit kit_upload test_upload kit_local download_kits check_kits tag