forked from cs373gc-fall-2016/SWEetOutdoors
/
makefile
47 lines (39 loc) · 859 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
40
41
42
43
44
45
46
47
.DEFAULT_GOAL := turnin
ifeq ($(CI), true) # Travis CI
PYTHON := python
PIP := pip3.5
PYLINT := pylint
COVERAGE := coverage-3.5
PYDOC := pydoc3
AUTOPEP8 := autopep8
else # UTCS
PYTHON := python
PIP := pip3.5
PYLINT := pylint
COVERAGE := coverage-3.5
PYDOC := pydoc3.4
AUTOPEP8 := autopep8
endif
format:
$(AUTOPEP8) -i app/tests.py
$(AUTOPEP8) -i app/__init__.py
$(AUTOPEP8) -i app/testmodels.py
$(AUTOPEP8) -i app/testsearch.py
html:
./html.sh
test: pylint
./test.sh
log:
git log > IDB3.log
pylint:
$(PYLINT) app/models.py
turnin: format test html log
echo "git SHA for turnin jason"
git rev-parse HEAD
clean:
rm -f app/tests.out
rm -f *.pyc app/*.pyc
rm -f *.html
rm -f *.log
rm -f .coverage
rm -f app/tests.tmp