forked from openshift/origin-ci-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (29 loc) · 790 Bytes
/
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
# Install the origin-ci-tool on the local system.
# NOTE: this target may require `sudo` privileges.
install:
pip install . --process-dependency-links
.PHONY: install
# Install the origin-ci-tool in the editable mode
# using the extra development dependencies.
install-development:
pip install --editable .[development] --process-dependency-links
.PHONY: install-development
# Run the source code verification scripts.
verify:
hack/verify/formatting.sh
hack/verify/pep8.sh
hack/verify/declared-versions-match.sh
.PHONY: verify
# Run the unit tests.
ifdef TARGET
TARGET = --verbose $(TARGET)
else
TARGET ?= discover --verbose
endif
test:
coverage run -m unittest $(TARGET)
.PHONY: test
# Generate and view the coverage information.
coverage:
coverage html
.PHONY: coverage