forked from jonchang/eol-mturk-landmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (37 loc) · 995 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
48
49
50
#!/bin/bash
# Ben Johnston
# Wednesday 7 June 15:06:32 AEST 2017
# License BSD 3-Clause
# Variables ###################################################################
SHELL := /bin/bash
DEFAULT = make help
PROTOCOL_FILES = protocol/protocol.html
APPS=FaceMarker,MechTurkLandmarker
OMIT=*/test*.py,*/migrations/*.py
###############################################################################
all:
$(DEFAULT)
help:
clear \
&& echo "make help - This help" \
&& echo "make test - Execute unittests" \
.PHONY: all build clean
build:
cd turkmarker && python manage.py -b
test:
MECHTURK_ID=1234 MECHTURK_KEY=456 nosetests -s --with-coverage --cover-html --cover-package=turkmarker &&\
coverage xml -i
upload:
cd turkmarker &&\
python turkmarker.py -u -v 1
create_hit:
cd turkmarker &&\
python turkmarker.py -m -v 1
hit_results:
cd turkmarker &&\
python turkmarker.py -r -v 1
clean:
cd turkmarker &&\
rm .coverage &&\
rm static/lmrk_*.jpg &&\
rm static/check.js