You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
524 B

4 years ago
  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