forked from observing/square
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 1012 Bytes
/
Makefile
File metadata and controls
38 lines (31 loc) · 1012 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
# locations of the latest compilers
YUIVERSION = yuicompressor-2.4.7
LATESTCLOSURE= http://closure-compiler.googlecode.com/files/compiler-latest.zip
LATESTYUI = http://yui.zenfs.com/releases/yuicompressor/$(YUIVERSION).zip
# configuration for the test suite
ALL_TESTS = $(shell find tests/ -name '*.test.js')
REPORTER = spec
UI = exports
# location of the vendor folder where all external tools are downloaded to
VENDOR = ./vendor
TMP = ./.build_tmp
download:
@rm -Rf $(VENDOR)
@mkdir $(VENDOR) $(TMP)
@cd $(TMP) && curl $(LATESTCLOSURE) -o closure.zip && unzip closure.zip && mv compiler.jar .$(VENDOR)/closure.jar
@cd $(TMP) && curl $(LATESTYUI) -o yui.zip && unzip yui.zip && mv $(YUIVERSION)/build/$(YUIVERSION).jar .$(VENDOR)/yui.jar
@rm -Rf $(TMP)
test:
@./node_modules/.bin/mocha \
--require should \
--reporter $(REPORTER) \
--timeout 4000 \
--ui $(UI) \
--growl \
$(ALL_TESTS)
update:
@git submodule update --init --recursive
@npm install .
install:
@npm link .
.PHONY: test