mirror of
https://github.com/alerta/alerta.git
synced 2025-02-06 06:20:03 +00:00
30 lines
412 B
Makefile
30 lines
412 B
Makefile
|
|
PYTHON = python
|
|
|
|
all: help
|
|
|
|
help:
|
|
@echo ""
|
|
@echo "Usage: make <command>"
|
|
@echo ""
|
|
@echo "Commands:"
|
|
@echo " init Initialise environment"
|
|
@echo " pylint Lint source code"
|
|
@echo " test Run tests"
|
|
@echo ""
|
|
|
|
init:
|
|
pip install -r requirements.txt
|
|
|
|
pylint:
|
|
@pip -q install pylint
|
|
pylint --rcfile pylintrc alerta
|
|
|
|
test:
|
|
nosetests tests
|
|
|
|
run:
|
|
alertad
|
|
|
|
upload:
|
|
$(PYTHON) setup.py sdist upload
|