forked from joola/joola
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (40 loc) · 1.36 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
REPORTER=spec
COVERALLS_GIT_COMMIT=HEAD
COVERALLS_REPO_TOKEN=Che5WhsI4mbjDKH9dnrrxoFJ06ivbNzxs
export COVERALLS_GIT_COMMIT
export COVERALLS_REPO_TOKEN
test:
$(MAKE) lint
@NODE_ENV=test ./node_modules/.bin/mocha --reporter $(REPORTER)
authors:
node build/authors.js
compile:
@NODE_ENV=test
browserify ./lib/sdk/index.js -i ./lib/sdk/bin/joola.io.js -o ./lib/sdk/bin/joola.io.js --debug
lint:
@./node_modules/.bin/jshint ./lib ./test
doc:
find ./wiki/* ! -iregex '(.git|.npm)' | xargs rm -fr
node build/docs.js
tail -n +4 ./apiary.apib > ./wiki/technical-documentation/code/API-Documentation.md
sed -i '1i**View a live version of this page @ [http://docs.joolaio.apiary.io](http://docs.joolaio.apiary.io)**\n' ./wiki/technical-documentation/code/API-Documentation.md
test-cov:
$(MAKE) lint
$(MAKE) istanbul
test-cov-partial:
./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha ./test/unit/starthere.spec.js ./test/unit/3_auth/routes.spec.js -- -R spec test
istanbul:
./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec test
coveralls:
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
test-api:
redis-cli flushall
node joola.io.js &
sleep 2
-dredd -r html apiary.apib http://localhost:8080
killall -9 node
publish:
npm shrinkwrap
npm publish
rm npm-shrinkwrap.json
.PHONY: test