1
1
mirror of https://github.com/harelba/q.git synced 2024-10-04 06:48:13 +03:00
q/Makefile

36 lines
848 B
Makefile
Raw Permalink Normal View History

2019-06-23 00:58:40 +03:00
SHELL := /bin/bash
PROJECT_NAME=$(shell dirname "$0")
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
.PHONY: test help
.DEFAULT_GOAL := ci
2019-07-20 22:18:44 +03:00
ci: lint test ## Equivelant to 'make lint test'
2019-06-23 00:58:40 +03:00
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}'
2019-07-20 22:18:44 +03:00
dep: ## Install the dependent libraries.
2019-06-23 00:58:40 +03:00
pip install -r test-requirements.txt
pip install -e .
lint: dep ## Run lint validations.
2019-07-20 22:18:44 +03:00
flake8 q/ --count --select=E901,E999,F821,F822,F823 --show-source --statistics
2019-06-23 00:58:40 +03:00
test: dep ## Run the unit tests.
2019-11-27 17:27:21 +03:00
py.test -rs -c pytest.ini -s -v q/tests/suite.py --rootdir .
2019-06-23 00:58:40 +03:00
2019-07-20 22:18:44 +03:00
release: ## Run release
2019-12-16 21:22:03 +03:00
pip install py-ci
2019-06-23 00:58:40 +03:00
pyci release --no-wheel-publish --wheel-universal
2019-11-05 15:36:14 +03:00
local-release:
2019-12-16 21:22:03 +03:00
pip install py-ci
2019-11-12 17:43:34 +03:00
./do-manual-release.sh