Skip to content

Commit

Permalink
add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Raoul1996 committed Apr 5, 2018
1 parent 106f3ea commit 21f4985
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ before_install:
- sudo service mysql restart
- mysql -uroot -proot -e 'CREATE DATABASE IF NOT EXISTS vote_test;'
install:
- npm install -g codecov
- npm install
before_script:
script:
- npm run ci
- npm run ci
# - istanbul cover ./node_modules/mocha/bin/_mocha --reporter lcovonly -- -R spec
- codecov
after_success:
- tar -jcf egg.tar.bz2 * .*
- scp egg.tar.bz2 [email protected]:~/
Expand All @@ -44,3 +47,4 @@ branches:
- master
env:
global:
- CODECOV_TOKEN="a7b5f136-6a3e-4e2f-afc4-4f3082cec1b9"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# egg-vote
[![Build Status](https://travis-ci.org/Raoul1996/egg-vote.svg?branch=master)](https://travis-ci.org/Raoul1996/egg-vote)
[![codecov](https://codecov.io/gh/Raoul1996/egg-vote/branch/master/graph/badge.svg)](https://codecov.io/gh/Raoul1996/egg-vote)
[![bitHound Overall Score](https://www.bithound.io/github/Raoul1996/egg-vote/badges/score.svg)](https://www.bithound.io/github/Raoul1996/egg-vote)
[![bitHound Dependencies](https://www.bithound.io/github/Raoul1996/egg-vote/badges/dependencies.svg)](https://www.bithound.io/github/Raoul1996/egg-vote/master/dependencies/npm)
[![bitHound Dev Dependencies](https://www.bithound.io/github/Raoul1996/egg-vote/badges/devDependencies.svg)](https://www.bithound.io/github/Raoul1996/egg-vote/master/dependencies/npm)
Expand Down
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
codecov:
token: a7b5f136-6a3e-4e2f-afc4-4f3082cec1b9
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"devDependencies": {
"autod": "^3.0.1",
"autod-egg": "^1.1.0",
"codecov": "^3.0.0",
"egg-bin": "^4.4.0",
"egg-ci": "^1.8.0",
"egg-mock": "^3.17.0",
Expand All @@ -55,6 +56,7 @@
"lint": "eslint .",
"ci": "npm run lint && npm run cov",
"autod": "autod",
"codecov":"codecov",
"start:test": "cross-env EGG_SERVER_ENV=test node index.js",
"deploy:prod": "cross-env EGG_SERVER_ENV=prod pm2 start start.json"
},
Expand Down
2 changes: 1 addition & 1 deletion test/controller/user.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ describe('test/controller/user.test.js', () => {
msg: "^V^"
})
})
it('should POST forget/ 200 reset password fail 10006', () => {
it('should POST update/ 200 reset password fail 10006', () => {
app.mockCsrf()
app.mockSession({
captcha: "Q7WURU",
Expand Down

0 comments on commit 21f4985

Please sign in to comment.