forked from voltrue2/in-app-purchase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (41 loc) · 1.56 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
init:
@echo 'create git pre-commit hook'
ln -s ../../precommit.sh .git/hooks/pre-commit
@echo 'adjust pre-commit hook file permission'
chmod +x .git/hooks/pre-commit
@echo 'install dependencies'
npm install
@echo 'done'
.PHONY: lint
lint:
./lint
.PHONY: test
test:
./node_modules/mocha/bin/mocha test/apple.js -R spec -b --timeout=5000 --path=false
./node_modules/mocha/bin/mocha test/google.js -R spec -b --path=false --pk=false
./node_modules/mocha/bin/mocha test/amazon.js -R spec -b --timeout=5000 --sharedKey=false --path=false
./node_modules/mocha/bin/mocha test/windows.js -R spec -b --timeout=5000 --path=false
.PHONY: aptest
aptest:
./node_modules/mocha/bin/mocha test/apple.js -R spec -b --timeout=5000 --path=false
.PHONY: gotest
gotest:
./node_modules/mocha/bin/mocha test/google.js -R spec -b --path=false --pk=false
.PHONY: amtest
amtest:
./node_modules/mocha/bin/mocha test/amazon.js -R spec -b --timeout=5000 --sharedKey=false --path=false
.PHONY: witest
witest:
./node_modules/mocha/bin/mocha test/windows.js -R spec -b --timeout=5000 --path=false
.PHONY: test-apple
test-apple:
./node_modules/mocha/bin/mocha test/apple.js -R spec -b --timeout=5000 --path=$(path)
.PHONY: test-google
test-google:
./node_modules/mocha/bin/mocha test/google.js -R spec -b --path=$(path) --pk=$(pk)
.PHONY: test-windows
test-windows:
./node_modules/mocha/bin/mocha test/windows.js -R spec -b --timeout=5000 --path=$(path)
.PHONY: test-amazon
test-amazon:
./node_modules/mocha/bin/mocha test/amazon.js -R spec -b --timeout=5000 --sharedKey=$(sharedKey) --path=$(path)