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
1
2
2
3
language : node_js
4
+
3
5
node_js :
4
- - " 6"
5
- - " 5"
6
6
- " 4"
7
+ - " 6"
8
+ - " 8"
7
9
8
10
install :
9
- - make node_modules
11
+ - make install
10
12
11
13
script :
12
14
- make lint
13
15
- make test
14
16
- 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
30
30
. > dist/debug.js
31
31
32
32
lint :
33
- eslint * .js src/* .js
33
+ @ eslint * .js src/* .js
34
34
35
35
test-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
37
38
38
39
test-browser :
39
- $(MAKE ) browser
40
- karma start --single-run
40
+ @ $(MAKE ) browser
41
+ @ karma start --single-run
41
42
42
- test :
43
- concurrently \
43
+ test-all :
44
+ @ concurrently \
44
45
" make test-node" \
45
46
" make test-browser"
46
47
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
49
54
50
55
clean :
51
- rimraf dist
56
+ rimraf dist coverage
52
57
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