Skip to content

Commit 60a3ef1

Browse files
committed
config: add coveralls
1 parent 5ae0832 commit 60a3ef1

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
node_modules/
3+
coverage/
34
npm-debug.log
45
selenium-debug.log
56
test/unit/coverage

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
language: node_js
2+
cache:
3+
directories:
4+
- node_modules
25
node_js:
36
- "6"
47
- "5"
58
- "4"
69
- "0.12"
10+
after_success:
11+
- cat ./test/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "webpack --config webpack.build.config.js",
99
"dev": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/",
1010
"lint": "eslint --ext=.js,.vue src",
11-
"coverage": "set TEST_TYPE=coverage & karma start karma.config.js",
11+
"coverall": "karma start test/unit/karma.conf.js --single-run --reporters coverage,coveralls",
1212
"changelog": "conventional-changelog -i CHANGELOG.md -s",
1313
"unit": "karma start test/unit/karma.conf.js",
1414
"e2e": "node test/e2e/runner.js",
@@ -43,6 +43,7 @@
4343
"chai": "3.5.0",
4444
"conventional-changelog-cli": "1.1.1",
4545
"conventional-github-releaser": "1.1.2",
46+
"coveralls": "2.11.9",
4647
"css-loader": "0.23.1",
4748
"eslint": "2.9.0",
4849
"eslint-friendly-formatter": "2.0.4",
@@ -59,6 +60,7 @@
5960
"karma-chai": "0.1.0",
6061
"karma-chrome-launcher": "1.0.1",
6162
"karma-coverage": "0.5.5",
63+
"karma-coveralls": "1.1.2",
6264
"karma-mocha": "0.2.2",
6365
"karma-phantomjs-launcher": "1.0.0",
6466
"karma-sinon-chai": "1.2.0",

0 commit comments

Comments
 (0)