-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (24 loc) · 1.34 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
SHELL := /bin/bash
PROJECT_NAME=$(shell dirname "$0")
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
.PHONY: test help
.DEFAULT_GOAL := ci
ci: dep lint test ## Equivelant to 'make dep 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: dep-test dep-project ## Equivelant to 'make dep-test dep-project'
dep-test: ## Install the dependent libraries needed for tests.
pip install -r test-requirements.txt
dep-project: ## Install the dependent libraries needed for the project to run.
pip install -e .
lint: dep ## Run lint validations.
pylint --rcfile configs/pylint.ini pyci
test-unit: dep ## Run the unit tests.
py.test -s --durations=10 -v -m "not cross_distro" -rs -c configs/pytest.ini --cov-config=configs/coverage.ini --cov=pyci pyci/tests --rootdir .
test-cross-distro: dep ## Run the cross-distro tests.
py.test -s --durations=10 -v -m cross_distro -rs -c configs/pytest.ini --cov-config=configs/coverage.ini --cov=pyci pyci/tests --rootdir .
test: test-unit test-cross-distro ## Equivelant to 'make test-unit test-cross-distro'
release: dep-project ## Run release
pyci release --wheel-universal --binary-entrypoint pyci.spec
codecov: dep-test ## Report coverage to coveralls
coveralls