-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 748 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 748 Bytes
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
PIP = pip3
PYTHON = python3
.PHONY = help ci-lint coverage lint pre-lint setup test
.DEFAULT_GOAL = help
help:
@echo "---------------HELP-----------------"
@echo "To check the project coverage type make coverage"
@echo "To lint the project type make lint"
@echo "To setup the project type make setup"
@echo "To test the project type make test"
@echo "------------------------------------"
coverage:
${PIP} install coverage
coverage run setup.py test
ci-lint: pre-lint lint
pre-lint:
${PIP} install pylint
${PIP} install setuptools-lint
${PIP} install --upgrade pep8
${PIP} install --upgrade autopep8
lint:
${PYTHON} setup.py lint
autopep8 --in-place -r castle
setup:
${PYTHON} setup.py install
test:
${PYTHON} setup.py test