enabling code coverage on TravisCI

This commit is contained in:
Kononnable 2019-05-05 19:07:57 +02:00
parent 5f26f69a03
commit 379bb3f530
4 changed files with 16 additions and 5 deletions

View File

@ -54,6 +54,3 @@ jobs:
# run tests
- run: npm run lint
- run: npm test
# run code coverage
- run: curl -s https://codecov.io/bash

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.nyc_output/
.DS_Store
.vscode/
.idea/

View File

@ -1,4 +1,3 @@
sudo: required
language: node_js
node_js:
# - stable
@ -21,7 +20,8 @@ before_script:
script:
- npm run lint
- npm test
- npx nyc npm test
after_success:
- npx nyc report --reporter=json > coverage/coverage.json
- bash <(curl -s https://codecov.io/bash)

View File

@ -125,5 +125,18 @@
"type": "opencollective",
"url": "https://opencollective.com/typeorm",
"logo": "https://opencollective.com/opencollective/logo.txt"
},
"nyc": {
"extension": [
".ts",
".tsx"
],
"exclude": [
"**/*.d.ts"
],
"include": [
"src/**/*.ts"
],
"all": true
}
}