-
Notifications
You must be signed in to change notification settings - Fork 57
/
Makefile
61 lines (44 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# kubetest
#
PKG_NAME := $(shell python setup.py --name)
PKG_VERSION := $(shell python setup.py --version)
.PHONY: clean
clean: ## Clean up build artifacts
rm -rf build/ dist/ *.egg-info htmlcov/ .coverage* .pytest_cache/ \
kubetest/__pycache__ tests/__pycache__
.PHONY: deps
deps: ## Update the frozen pip dependencies (requirements.txt)
tox -e deps
.PHONY: docs
docs: ## Build the kubetest docs locally
tox -e docs
.PHONY: example-tests
example-tests: ## Run the example tests using kubetest
tox -e examples
.PHONY: fmt
fmt: ## Run formatting checks on the project source code
pre-commit run --all-files
.PHONY: github-tag
github-tag: ## Create and push a tag with the current version
git tag -a ${PKG_VERSION} -m "${PKG_NAME} version ${PKG_VERSION}"
git push -u origin ${PKG_VERSION}
.PHONY: lint
lint: ## Run linting checks on the project source code (isort, flake8, twine)
tox -e lint
.PHONY: test
test: ## Run the project unit tests
tox
.PHONY: version
version: ## Print the version of the project
@echo "${PKG_VERSION}"
.PHONY: help
help: ## Print Make usage information
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort
.DEFAULT_GOAL := help
# Targets for Jenkins CI
.PHONY: unit-test pypi-release
unit-test:
tox -e py38
pypi-release:
tox -e publish