mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-12-03 15:53:52 +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
|
||||
|
||||
PYTHON_PATH?=python3
|
||||
|
||||
lint:
|
||||
python -m pylint check_http_json.py
|
||||
$(PYTHON_PATH) -m pylint check_http_json.py
|
||||
test:
|
||||
python -m unittest discover
|
||||
$(PYTHON_PATH) -m unittest discover
|
||||
coverage:
|
||||
python -m coverage run -m unittest discover
|
||||
python -m coverage report -m --include check_http_json.py
|
||||
$(PYTHON_PATH) -m coverage run -m unittest discover
|
||||
$(PYTHON_PATH) -m coverage report -m --include check_http_json.py
|
||||
|
Loading…
Reference in New Issue
Block a user