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/"],
"collectCoverageFrom": ["src/**/*.js"]
"testPathIgnorePatterns": ["/src/"]
}

View File

@ -10,7 +10,7 @@ addons:
- gcc-4.8
- g++-4.8
script:
- npm run test:coverage
- npm run test
# - npm run example:ci
branches:
only:
@ -27,4 +27,4 @@ cache:
# on:
# branch: master
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",
"build": "babel src -d build",
"test": "jest --config .jest.json",
"test:coverage": "jest --coverage",
"test:watch": "npm test -- --watch",
"test:coverage": "jest --coverage",
"prepublish": "npm run build",
"release": "np",
"example:peripheral:install": "cd example/peripheral && npm install",