Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 690 Bytes
lint:
./node_modules/.bin/eslint ./test ./lib/nats.js ./examples ./benchmark
test:
@NODE_ENV=test ./node_modules/.bin/mocha -c\
--reporter list \
--slow 5000 \
--timeout 10000
# Use 'npm run cover' instead
#test-cov:
# @NODE_ENV=test ./node_modules/.bin/istanbul cover \
# ./node_modules/mocha/bin/mocha -- -R spec --slow 5000
# Use 'npm run coveralls' instead
#test-coveralls:
# echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
# $(MAKE) lint
# $(MAKE) test
# @NODE_ENV=test ./node_modules/.bin/istanbul cover \
# ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec --slow 5000 && \
# cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js || true
.PHONY: test