forked from officert/node-siftscience
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 654 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 654 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
MOCHA = node_modules/mocha/bin/mocha
ESLINT = node_modules/eslint/bin/eslint.js
ISTANBUL = node_modules/.bin/istanbul
default:
npm install;
clean:
rm -rf coverage;
test: eslint test-unit
test-unit:
@NODE_ENV=test \
$(MOCHA) tests/**/*-test.js
coverage: clean
@NODE_ENV=test \
${ISTANBUL} cover \
./node_modules/.bin/_mocha \
"tests/**/*-test*" \
-- -t 20000 --bail
coveralls:
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
open-coverage-report:
open ./coverage/lcov-report/index.html;
eslint:
$(ESLINT) --config "./.eslintrc.js" "lib/**/*.js" \
$(ESLINT) --config "./.eslintrc.js" "tests/**/*.js" \
run: node-index.js