forked from natlownes/quips
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 995 Bytes
/
Copy pathMakefile
File metadata and controls
53 lines (39 loc) · 995 Bytes
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
51
52
53
mocha = @./node_modules/.bin/mocha \
--compilers coffee:coffee-script
HEM = @./node_modules/.bin/hem
TEST_DEPS=./test/setup.coffee ./tmp/templates
FILES?=`find ./test -type f -name '*_spec.coffee'`
HOST?=http://localhost
OUTPUT?=host.html
# If PAT is passed in, feed that to mocha. It will only run tests matching that
# pattern.
ifneq ('', PAT)
MOCHA=$(mocha) -g "$(PAT)"
else
MOCHA=$(mocha)
endif
FILES="${TEST_DEPS} ${FILES}"
export NODE_PATH=./
compile:
@grunt shell:haml_compile_test
xunit:
$(MOCHA) -R xunit $(FILES)
test: compile
@echo $(FILES)
$(MOCHA) -R spec $(FILES)
debug:
$(MOCHA) --debug-brk -R spec $(FILES)
watch:
$(MOCHA) -R dot -w $(FILES)
update:
@npm install
tags:
@ctags -R .
deploy:
@rm -f ./public/application.*
$(HEM) build
@sed "s|http://localhost:[0-9]*|$(HOST)|g" ./public/index.html > ./public/$(OUTPUT)
@s3cmd sync --acl-public ./public/ s3://partners.vistarmedia.com
@rm -f ./public/application.*
@rm -f ./public/$(OUTPUT)
.PHONY: test