Skip to content

Commit

Permalink
enabling code coverage on TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kononnable committed May 5, 2019
1 parent 5f26f69 commit 379bb3f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Expand Up @@ -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 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.nyc_output/
.DS_Store
.vscode/
.idea/
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
@@ -1,4 +1,3 @@
sudo: required
language: node_js
node_js:
# - stable
Expand All @@ -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 changes: 13 additions & 0 deletions package.json
Expand Up @@ -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
}
}

0 comments on commit 379bb3f

Please sign in to comment.