|
|
|
@ -13,6 +13,8 @@ COVERAGE_PATH := docs/build/html/coverage |
|
|
|
|
#RELEASE := $(strip $(file < RELEASE.txt))
|
|
|
|
|
RELEASE := $(strip `cat RELEASE.txt`)
|
|
|
|
|
VERSION := $(strip `cat VERSION.txt`)
|
|
|
|
|
DOCS_PATH := $(PROJECT_HOME)/docs_diff6_com
|
|
|
|
|
DOCS_WWW := $(DOCS_PATH)/www
|
|
|
|
|
|
|
|
|
|
# Attempt to load a local makefile which may override any of the values above.
|
|
|
|
|
-include local.makefile |
|
|
|
@ -72,6 +74,20 @@ publish: |
|
|
|
|
secure: |
|
|
|
|
bandit -r $(PACKAGE_NAME);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#> support - Build support (help) and reference documentation.
|
|
|
|
|
support: |
|
|
|
|
cd docs && make dirhtml;
|
|
|
|
|
cd help/en/ && mkdocs build;
|
|
|
|
|
test -d $(DOCS_WWW)/en/$(PROJECT_NAME)/$(RELEASE) || mkdir -p $(DOCS_WWW)/en/$(PROJECT_NAME)/$(RELEASE);
|
|
|
|
|
test -d $(DOCS_WWW)/en/$(PROJECT_NAME)/$(RELEASE)/reference || mkdir -p $(DOCS_WWW)/en/$(PROJECT_NAME)/$(RELEASE)/reference;
|
|
|
|
|
cp -R docs/build/dirhtml/* $(DOCS_WWW)/en/$(PROJECT_NAME)/$(RELEASE)/reference/;
|
|
|
|
|
cp -R help/en/site/* $(DOCS_WWW)/en/$(PROJECT_NAME)/$(RELEASE)/;
|
|
|
|
|
cp meta.ini $(DOCS_PATH)/config/$(PROJECT_NAME).ini;
|
|
|
|
|
cd $(DOCS_WWW)/en/$(PROJECT_NAME) && ln -fs $(RELEASE) latest;
|
|
|
|
|
cd $(DOCS_WWW)/en/$(PROJECT_NAME) && ln -fs $(RELEASE) stable; # if product is stable
|
|
|
|
|
cd $(DOCS_PATH) && make build;
|
|
|
|
|
|
|
|
|
|
#> tests - Run unit tests and generate coverage report.
|
|
|
|
|
tests: |
|
|
|
|
coverage run --source=. -m pytest;
|
|
|
|
|