-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
37 lines (34 loc) · 1.22 KB
/
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
FILES := \
.gitignore \
makefile \
apiary.apib \
IDB1.log \
models.py \
model.html \
tests.py \
UML.pdf
check:
@not_found=0; \
for i in $(FILES); \
do \
if [ -e $$i ]; \
then \
echo "$$i found"; \
else \
echo "$$i NOT FOUND"; \
not_found=`expr "$$not_found" + "1"`; \
fi \
done; \
if [ $$not_found -ne 0 ]; \
then \
echo "$$not_found failures"; \
exit 1; \
fi; \
echo "success";
clean:
rm -f .coverage
rm -f *.pyc
rm -rf __pycache__
test:
coverage run --branch tests.py
coverage report --include=models.py