mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
enabling code coverage on TravisCI
This commit is contained in:
parent
5f26f69a03
commit
379bb3f530
@ -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
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.nyc_output/
|
||||
.DS_Store
|
||||
.vscode/
|
||||
.idea/
|
||||
|
||||
@ -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)
|
||||
|
||||
13
package.json
13
package.json
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user