-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
40 lines (29 loc) · 929 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
34
35
36
37
38
39
.PHONY: test help
all: help
help:
@echo "available targets:"
@echo "help : print this help message"
@echo "run : run impost0r in pipenv"
@echo "pylint : run pylint"
@echo "mypy : run mypy"
@echo "test : run all unit tests"
@echo "test_online : run online unit tests"
@echo "test_misc : run misc unit tests"
@echo "requirements: create requirements.txt"
@echo "cx_freeze : create distributable"
run:
pipenv run python3 impost0r.py
requirements:
pipenv run pip freeze > requirements.txt
pylint:
pipenv run pylint impost0r.py
mypy:
pipenv run mypy --strict impost0r.py
test:
pipenv run python -m unittest discover -v
test_online:
pipenv run python -m unittest test.test_impost0r.Impost0rOnlineTests
test_misc:
pipenv run python -m unittest test.test_impost0r.Impost0rMiscTests
cx_freeze:
pipenv run cxfreeze --target-dir=dist impost0r.py