diff options
author | Harel Ben-Attia <harelba@gmail.com> | 2020-08-30 16:36:08 +0300 |
---|---|---|
committer | Harel Ben-Attia <harelba@gmail.com> | 2020-08-30 16:36:08 +0300 |
commit | 7abaab5656d524a8b3a8706d37d85009c58f842c (patch) | |
tree | 470f3feb7eb2be3cbcd4e81325ee86b00b9f73ad /Makefile | |
parent | b2f8a0ea431291fc5ba5bdc5306b31cf2263dc3b (diff) |
wip2.0.12
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e612a54 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +SHELL := /bin/bash + +PROJECT_NAME=$(shell dirname "$0") +ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) + +.PHONY: test help +.DEFAULT_GOAL := ci + +ci: lint test ## Equivelant to 'make lint test' + +help: ## Show this help message. + + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +dep: ## Install the dependent libraries. + + pip install -r test-requirements.txt + pip install -e . + +lint: dep ## Run lint validations. + + flake8 q/ --count --select=E901,E999,F821,F822,F823 --show-source --statistics + +test: dep ## Run the unit tests. + + test/test-all + ## TODO Bring back pytest + ## py.test -rs -c pytest.ini -s -v q/tests/suite.py --rootdir . + +release: ## Run release + pip install py-ci + pyci release --no-wheel-publish --wheel-universal + +local-release: + pip install py-ci + ./do-manual-release.sh + |