mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-12-04 08:13:51 +01:00
Change makefile to use python3
- Introduces a variable to override this if necessary
This commit is contained in:
parent
09a7ec080c
commit
3f73984f6b
10
Makefile
10
Makefile
@ -1,9 +1,11 @@
|
|||||||
.PHONY: lint test coverage
|
.PHONY: lint test coverage
|
||||||
|
|
||||||
|
PYTHON_PATH?=python3
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
python -m pylint check_http_json.py
|
$(PYTHON_PATH) -m pylint check_http_json.py
|
||||||
test:
|
test:
|
||||||
python -m unittest discover
|
$(PYTHON_PATH) -m unittest discover
|
||||||
coverage:
|
coverage:
|
||||||
python -m coverage run -m unittest discover
|
$(PYTHON_PATH) -m coverage run -m unittest discover
|
||||||
python -m coverage report -m --include check_http_json.py
|
$(PYTHON_PATH) -m coverage report -m --include check_http_json.py
|
||||||
|
Loading…
Reference in New Issue
Block a user