Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (31 sloc) 1.062 kb
05fd6cd @cliftonc Improved tests, added site and jscoverage to mocha, new makefile
authored
1
2 REPORTER = spec
9786efa @richtera Revert to old way of doing code coverage and fix problems with new jscov...
richtera authored
3 MOCHA_FLAGS = -t 5000 -s 500
05fd6cd @cliftonc Improved tests, added site and jscoverage to mocha, new makefile
authored
4
0caf741 @richtera Install jscoverage on demand during make test instead of making it a dev...
richtera authored
5 jscoverage: ./node_modules/jscoverage/jscoverage.node
6
7 ./node_modules/jscoverage/jscoverage.node:
8 npm install jscoverage
9
10 test: jscoverage
09b726e @cliftonc Further tweaks to loading to fix travis broken build
authored
11 @NODE_ENV=mocha ./node_modules/.bin/mocha \
9786efa @richtera Revert to old way of doing code coverage and fix problems with new jscov...
richtera authored
12 --reporter $(REPORTER) $(MOCHA_FLAGS)
05fd6cd @cliftonc Improved tests, added site and jscoverage to mocha, new makefile
authored
13
0caf741 @richtera Install jscoverage on demand during make test instead of making it a dev...
richtera authored
14 test-debug-brk: jscoverage
7ae690e @richtera Make test scripts pass and add test-debug and test-debug-brk targets in ...
richtera authored
15 @NODE_ENV=mocha ./node_modules/.bin/mocha \
9786efa @richtera Revert to old way of doing code coverage and fix problems with new jscov...
richtera authored
16 --reporter $(REPORTER) $(MOCHA_FLAGS) --debug-brk
7ae690e @richtera Make test scripts pass and add test-debug and test-debug-brk targets in ...
richtera authored
17
0caf741 @richtera Install jscoverage on demand during make test instead of making it a dev...
richtera authored
18 test-debug: jscoverage
7ae690e @richtera Make test scripts pass and add test-debug and test-debug-brk targets in ...
richtera authored
19 @NODE_ENV=mocha ./node_modules/.bin/mocha \
9786efa @richtera Revert to old way of doing code coverage and fix problems with new jscov...
richtera authored
20 --reporter $(REPORTER) $(MOCHA_FLAGS) --debug
7ae690e @richtera Make test scripts pass and add test-debug and test-debug-brk targets in ...
richtera authored
21
0caf741 @richtera Install jscoverage on demand during make test instead of making it a dev...
richtera authored
22 test-cov: jscoverage
9786efa @richtera Revert to old way of doing code coverage and fix problems with new jscov...
richtera authored
23 -rm -rf lib-cov
24 jscoverage --no-highlight lib lib-cov
25 -NODE_ENV=mocha CALIPSO_COV=1 ./node_modules/.bin/mocha --reporter html-cov -t 5000 -s 500 > docs/coverage.html
26 rm -rf lib-cov
05fd6cd @cliftonc Improved tests, added site and jscoverage to mocha, new makefile
authored
27
28 site:
2b52a73 @richtera Add new site target
richtera authored
29 -mkdir ./tmp
30 cd ./tmp \
31 && git clone git@github.com:cliftonc/calipso.git -b gh-pages gh-pages \
32 && cp ../docs/* ./gh-pages \
33 && cd ./gh-pages \
34 && git commit -a -m "Update Pages" \
35 && git push \
36 && cd .. \
37 && rm -rf gh-pages \
38 && echo "Pages Updated"
05fd6cd @cliftonc Improved tests, added site and jscoverage to mocha, new makefile
authored
39
0caf741 @richtera Install jscoverage on demand during make test instead of making it a dev...
richtera authored
40 .PHONY: site test test-cov test-debug test-debug-brk lib-cov jscoverage
Something went wrong with that request. Please try again.