Makefile 524 B

12345678910111213141516171819202122
  1. test:
  2. @npm run test
  3. lib-cov:
  4. @./node_modules/.bin/istanbul instrument --output lib-cov --no-compact --variable global.__coverage__ lib
  5. coverage: lib-cov
  6. @COVERAGE=1 ISTANBUL_REPORTERS=text-summary ./node_modules/.bin/mocha --reporter mocha-istanbul
  7. @rm -rf lib-cov
  8. coveralls: lib-cov
  9. @COVERAGE=1 ISTANBUL_REPORTERS=lcovonly ./node_modules/.bin/mocha --reporter mocha-istanbul
  10. @cat lcov.info | ./node_modules/.bin/coveralls
  11. @rm -rf lib-cov lcov.info
  12. travis: lint test coveralls
  13. lint:
  14. @npm run lint
  15. .PHONY: test