-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmakefile
More file actions
48 lines (45 loc) · 1.26 KB
/
Copy pathmakefile
File metadata and controls
48 lines (45 loc) · 1.26 KB
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
40
41
42
43
44
45
46
47
48
ifeq ($(shell uname), Darwin) # Apple
PYTHON := python3.5
PIP := pip3.5
PYLINT := pylint
COVERAGE := coverage-3.5
PYDOC := pydoc3.5
AUTOPEP8 := autopep8
else ifeq ($(CI), true) # Travis CI
PYTHON := python3.5
PIP := pip3.5
PYLINT := pylint
COVERAGE := coverage
PYDOC := pydoc3.5
AUTOPEP8 := autopep8
else ifeq ($(shell uname -p), unknown) # Docker
PYTHON := python3.5
PIP := pip3.5
PYLINT := pylint
COVERAGE := coverage-3.5
PYDOC := pydoc3.5
AUTOPEP8 := autopep8
else # UTCS
PYTHON := python3
PIP := pip3
PYLINT := pylint #change back to pylint3
COVERAGE := coverage #change back to coverage-3.5
PYDOC := pydoc3.5
AUTOPEP8 := autopep8
endif
test:
$(PYLINT) --generate-rcfile > app/pylintrc
@echo
$(PYLINT) app/idb.py --rcfile=app/pylintrc
$(PYLINT) app/models.py --rcfile=app/pylintrc
$(PYLINT) app/tests.py --rcfile=app/pylintrc
$(COVERAGE) run --branch app/tests.py
@echo
@$(COVERAGE) report -m app/tests.py app/models.py app/idb.py
@echo
clean:
rm -f app/*.pyc
rm -f app/.coverage
rm -f app/tests.tmp
rm -f app/pylintrc
rm -f .coverage