Travis: coverage 3

This commit is contained in:
Jeronimo Vallelunga 2017-07-13 01:07:31 -03:00
parent cd95483b2c
commit 4e38271b3a
3 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,3 @@
{ {
"testPathIgnorePatterns": ["/build/"], "testPathIgnorePatterns": ["/src/"]
"collectCoverageFrom": ["src/**/*.js"]
} }

View File

@ -10,7 +10,7 @@ addons:
- gcc-4.8 - gcc-4.8
- g++-4.8 - g++-4.8
script: script:
- npm run test:coverage - npm run test
# - npm run example:ci # - npm run example:ci
branches: branches:
only: only:
@ -27,4 +27,4 @@ cache:
# on: # on:
# branch: master # branch: master
after_success: after_success:
- bash <(curl -s https://codecov.io/bash) -e TRAVIS_NODE_VERSION - npm run test:coverage && bash <(curl -s https://codecov.io/bash) -e TRAVIS_NODE_VERSION

View File

@ -9,8 +9,8 @@
"prebuild": "npm run eslint", "prebuild": "npm run eslint",
"build": "babel src -d build", "build": "babel src -d build",
"test": "jest --config .jest.json", "test": "jest --config .jest.json",
"test:coverage": "jest --coverage",
"test:watch": "npm test -- --watch", "test:watch": "npm test -- --watch",
"test:coverage": "jest --coverage",
"prepublish": "npm run build", "prepublish": "npm run build",
"release": "np", "release": "np",
"example:peripheral:install": "cd example/peripheral && npm install", "example:peripheral:install": "cd example/peripheral && npm install",