Skip to content

Commit

Permalink
Add codecov for ci runs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanjudis committed Jan 30, 2019
1 parent 1dba9a9 commit c0757fe
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 48 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ release
# local certs
.certificates.p12

# codecov
coverage

# random stuff
.DS_STORE
.vscode
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ language: node_js
node_js:
- '11'
os: osx
script: npm test && npm run release
script: npm run test:ci && npm run release
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
collectCoverage: true,
collectCoverageFrom: ['src/*.ts', '!**/node_modules/**']
collectCoverageFrom: ['src/*.ts', '!**/node_modules/**'],
coverageDirectory: './coverage/'
};
132 changes: 86 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dev": "tsc && electron index.js",
"postinstall": "electron-builder install-app-deps",
"test": "tslint src/* && jest",
"test:ci": "npm run test && codecov",
"pack": "tsc && electron-builder --dir -m",
"dist": "tsc && electron-builder -m",
"release": "tsc && build",
Expand Down Expand Up @@ -50,6 +51,7 @@
"@types/jest": "^23.3.12",
"@types/node-fetch": "^2.1.4",
"all-contributors-cli": "^5.7.0",
"codecov": "^3.1.0",
"electron": "^4.0.1",
"electron-builder": "^20.38.2",
"husky": "^1.2.0",
Expand Down

0 comments on commit c0757fe

Please sign in to comment.