UI for Zipcoin Blue

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. NODETESTS ?= test/*.js test/node/*.js
  2. BROWSERTESTS ?= test/*.js test/client/*.js
  3. REPORTER = spec
  4. all: superagent.js
  5. test:
  6. @if [ "x$(BROWSER)" = "x" ]; then make test-node; else make test-browser; fi
  7. test-node:
  8. @NODE_ENV=test NODE_TLS_REJECT_UNAUTHORIZED=0 ./node_modules/.bin/mocha \
  9. --require should \
  10. --reporter $(REPORTER) \
  11. --timeout 5000 \
  12. --growl \
  13. $(NODETESTS)
  14. test-cov: lib-cov
  15. SUPERAGENT_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
  16. test-browser:
  17. SAUCE_APPIUM_VERSION=1.7 ./node_modules/.bin/zuul -- $(BROWSERTESTS)
  18. test-browser-local:
  19. ./node_modules/.bin/zuul --no-coverage --local 4000 -- $(BROWSERTESTS)
  20. lib-cov:
  21. jscoverage lib lib-cov
  22. superagent.js: lib/node/*.js lib/node/parsers/*.js
  23. @./node_modules/.bin/browserify \
  24. --standalone superagent \
  25. --outfile superagent.js .
  26. test-server:
  27. @node test/server
  28. docs: index.html test-docs docs/index.md
  29. index.html: docs/index.md docs/head.html docs/tail.html
  30. marked < $< \
  31. | cat docs/head.html - docs/tail.html \
  32. > $@
  33. docclean:
  34. rm -f index.html docs/test.html
  35. test-docs: docs/head.html docs/tail.html
  36. make test REPORTER=doc \
  37. | cat docs/head.html - docs/tail.html \
  38. > docs/test.html
  39. clean:
  40. rm -fr superagent.js components
  41. .PHONY: test-cov test docs test-docs clean test-browser-local