diff --git a/.travis.yml b/.travis.yml index e096974..45d0718 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,4 +26,5 @@ jobs: script: npm run test after_success: - if [ -n "${CODECOV_TOKEN:-}" ]; then npm run codecov; fi + - npm run coverage - npm run semantic-release \ No newline at end of file diff --git a/package.json b/package.json index 4614f29..f40856d 100644 --- a/package.json +++ b/package.json @@ -75,10 +75,19 @@ "license": "MIT", "main": "lib/index.js", "nyc": { + "lines": 100, + "statements": 100, + "functions": 100, + "branches": 100, "include": [ "lib/*.js", "!lib/*.bundle.js" - ] + ], + "reporter": [ + "lcov", + "text" + ], + "all": true }, "peerDependencies": { "jasmine-core": "*", @@ -110,6 +119,7 @@ "codecov": "codecov", "commitmsg": "commitlint -e", "compile": "rimraf lib && babel src --only index.js --source-maps --out-dir lib && rollup -c build/rollup.config.js", + "coverage": "nyc check-coverage", "lint": "eslint src test package.json", "postcheckout": "yarn install || (rimraf && npm install)", "precommit": "npm run compile && npm run lint", @@ -118,6 +128,6 @@ "prepush": "ava -v", "pretest": "npm run clean && npm run compile && npm run lint", "semantic-release": "semantic-release pre && npm publish && semantic-release post", - "test": "nyc --all ava -v && nyc report --reporter=lcov" + "test": "nyc ava -v" } }