Skip to content

Commit

Permalink
add travis and codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Nov 8, 2017
1 parent bddaef1 commit d31fabc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: node_js
sudo: false
cache:
directories:
- node_modules
node_js:
- "6"
branches:
only:
- master
script:
- npm test
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"release-docs": "bash ./build/release/docs.sh",
"lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs",
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
"test": "npm run unit"
"codecov": "codecov",
"test": "npm run unit && npm run codecov"
},
"files": [
"src",
Expand Down Expand Up @@ -54,6 +55,7 @@
"babel-register": "^6.22.0",
"chai": "^3.5.0",
"chalk": "^1.1.3",
"codecov": "^3.0.0",
"connect-history-api-fallback": "^1.3.0",
"copy-webpack-plugin": "^4.0.1",
"cross-env": "^5.0.1",
Expand Down

0 comments on commit d31fabc

Please sign in to comment.