-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
47 lines (40 loc) · 1.34 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
coverage:
NODE_ENV=test \
DB_TOKEN="coverage" \
GOOGLE_OAUTH_SECRET="test" \
GOOGLE_OAUTH_ID="test" \
GOOGLE_OAUTH_FQDN="test" \
APP_FQDN="rssmtp.firetaco.com" \
APP_SECRET="test" \
APP_SMTP_HOST="smtp.example.com" \
APP_SMTP_PORT="465" \
APP_SMTP_SSL="true" \
APP_SMTP_FROM="[email protected]" \
APP_SMTP_PASS="dummy password" \
./node_modules/.bin/mocha --require blanket -R html-cov --recursive test > coverage.html
#./node_modules/.bin/mocha --recursive test
google-chrome coverage.html
cov: coverage
dev:
NODE_ENV=development \
./node_modules/.bin/nodemon -w . -e '.jade|.js|.styl' server.js
supper: test
bash -c "time git push origin master" # use bash for human-readable timing
test:
NODE_ENV=test \
GOOGLE_OAUTH_SECRET="test" \
GOOGLE_OAUTH_ID="test" \
GOOGLE_OAUTH_FQDN="test" \
APP_FQDN="rssmtp.firetaco.com" \
APP_SECRET="test" \
APP_SMTP_HOST="smtp.example.com" \
APP_SMTP_PORT="465" \
APP_SMTP_SSL="true" \
APP_SMTP_FROM="[email protected]" \
APP_SMTP_PASS="dummy password" \
./node_modules/.bin/mocha --recursive test -R list
testwatch:
DB_TOKEN="testwatch" ./node_modules/.bin/chicken -c 'clear; time make test' .
install:
npm install
.PHONY: cov coverage dev supper test testwatch