From 4e38271b3a3a3e0056840e909dcb3975ec887b70 Mon Sep 17 00:00:00 2001 From: Jeronimo Vallelunga Date: Thu, 13 Jul 2017 01:07:31 -0300 Subject: [PATCH] Travis: coverage 3 --- .jest.json | 3 +-- .travis.yml | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.jest.json b/.jest.json index 1f1a919..3bcf746 100644 --- a/.jest.json +++ b/.jest.json @@ -1,4 +1,3 @@ { - "testPathIgnorePatterns": ["/build/"], - "collectCoverageFrom": ["src/**/*.js"] + "testPathIgnorePatterns": ["/src/"] } \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 9e99b23..4429702 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file + - npm run test:coverage && bash <(curl -s https://codecov.io/bash) -e TRAVIS_NODE_VERSION \ No newline at end of file diff --git a/package.json b/package.json index 9263b1e..636694d 100644 --- a/package.json +++ b/package.json @@ -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",