Skip to content

Commit

Permalink
Add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicPoullain committed Sep 9, 2018
1 parent 2b67e2e commit abe4431
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -14,6 +14,7 @@ before_script:
before_install:
- npm install -g lerna
- npm install -g pm2
- npm install -g codecov

install:
- npm install
Expand All @@ -24,4 +25,7 @@ script:
- npm run lint
- lerna run test
- lerna run e2e
- ./e2e_test.sh
- ./e2e_test.sh

after_success:
- codecov -f packages/core/coverage/*.json
2 changes: 1 addition & 1 deletion packages/core/package.json
Expand Up @@ -5,7 +5,7 @@
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"scripts": {
"test": "nyc --reporter=html --reporter=text mocha --require ts-node/register --require source-map-support/register \"./src/**/*.spec.ts\"",
"test": "nyc --reporter=json --reporter=text mocha --require ts-node/register --require source-map-support/register \"./src/**/*.spec.ts\"",
"e2e": "mocha --require ts-node/register \"./e2e/**/*.spec.ts\"",
"dev:e2e": "mocha --require ts-node/register --watch --watch-extensions ts \"./e2e/**/*.spec.ts\"",
"dev:test": "mocha --require ts-node/register --watch --watch-extensions ts \"./src/**/*.spec.ts\"",
Expand Down

0 comments on commit abe4431

Please sign in to comment.