forked from owncloud-archive/maps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (35 loc) · 1.04 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
app_name=map
build_directory=build/
package_name=$(build_directory)$(app_name)
grunt=$(CURDIR)/node_modules/grunt-cli/bin/grunt
phantomjs=$(CURDIR)/node_modules/phantomjs/bin/phantomjs
all: bootstrap
clean:
rm -rf $(build_directory)
dist: clean
mkdir -p $(build_directory)
git archive HEAD --format=zip --prefix=$(app_name)/ > $(package_name).zip
# tests
test: javascript-tests unit-tests integration-tests acceptance-tests
phpunit: deps
$(grunt) --config $(CURDIR)/Gruntfile.js testphp
unit-tests:
phpunit tests/unit
integration-tests:
phpunit tests/integration
acceptance-tests:
cd tests/acceptance; make headless
javascript-tests:
cd js; make test
watch: build
$(grunt) --config $(CURDIR)/Gruntfile.js watchjs
karma: deps
export CHROME_BIN=$(chrome_bin) && export FIREFOX_BIN=$(firefox_bin) && \
$(grunt) --config $(CURDIR)/Gruntfile.js testjs
bootstrap: deps
mkdir -p $(CURDIR)/js/public
$(grunt) --config $(CURDIR)/Gruntfile.js bootstrap
build: deps
$(grunt) --config $(CURDIR)/Gruntfile.js build
deps:
npm install --deps