Makefile 579 B

1234567891011121314151617181920
  1. REPORTER = spec
  2. test:
  3. @NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(REPORTER) --check-leaks
  4. lint:
  5. ./node_modules/.bin/jshint ./test ./index.js
  6. test-cov:
  7. $(MAKE) lint
  8. @NODE_ENV=test ./node_modules/.bin/istanbul cover \
  9. ./node_modules/mocha/bin/_mocha -- -R spec --check-leaks
  10. test-codecov:
  11. echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
  12. $(MAKE) test
  13. @NODE_ENV=test ./node_modules/.bin/istanbul cover \
  14. ./node_modules/mocha/bin/_mocha --check-leaks --report lcovonly -- -R spec && \
  15. cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
  16. .PHONY: test