File tree Expand file tree Collapse file tree 2 files changed +25
-13
lines changed
Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Original file line number Diff line number Diff line change 1+ sudo : false
12
23language : node_js
4+
35node_js :
4- - " 6"
5- - " 5"
66 - " 4"
7+ - " 6"
8+ - " 8"
79
810install :
9- - make node_modules
11+ - make install
1012
1113script :
1214 - make lint
1315 - make test
1416 - make coveralls
17+
18+ matrix :
19+ include :
20+ - node_js : ' 8'
21+ env : BROWSER=1
Original file line number Diff line number Diff line change @@ -30,24 +30,29 @@ dist/debug.js: src/*.js node_modules
3030 . > dist/debug.js
3131
3232lint :
33- eslint * .js src/* .js
33+ @ eslint * .js src/* .js
3434
3535test-node :
36- istanbul cover node_modules/mocha/bin/_mocha -- test/** .js
36+ @istanbul cover node_modules/mocha/bin/_mocha -- test/** .js
37+ @cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
3738
3839test-browser :
39- $(MAKE ) browser
40- karma start --single-run
40+ @ $(MAKE ) browser
41+ @ karma start --single-run
4142
42- test :
43- concurrently \
43+ test-all :
44+ @ concurrently \
4445 " make test-node" \
4546 " make test-browser"
4647
47- coveralls :
48- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
48+ test :
49+ @if [ " x$( BROWSER_NAME) " = " x" ]; then \
50+ $(MAKE ) test-node; \
51+ else \
52+ $(MAKE ) test-browser; \
53+ fi
4954
5055clean :
51- rimraf dist
56+ rimraf dist coverage
5257
53- .PHONY : browser install clean coveralls lint test test-node test-browser
58+ .PHONY : browser install clean lint test test-all test-node test-browser
You can’t perform that action at this time.
0 commit comments