From bc1149cd2264920dcce1c4a2748bc4f09c47aa32 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Fri, 13 Jan 2017 21:01:20 -0800 Subject: [PATCH] Enable coverage report --- .eslintignore | 1 + .gitignore | 1 + .travis.yml | 2 ++ package.json | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintignore b/.eslintignore index 4f1a3315..2eac19d7 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ *.min.js built/ +coverage/ diff --git a/.gitignore b/.gitignore index ba2a7059..e9190d13 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ preview.png node_modules /built +/coverage diff --git a/.travis.yml b/.travis.yml index 56c2d586..3bfbe409 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,5 @@ node_js: - 4 - 5 - 6 +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/package.json b/package.json index 04f12696..a8679fcc 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "webpack --config=webpack.production.config.js", "serve": "webpack-dev-server", "weight": "npm run build && gzip-size built/winamp.js | pretty-bytes", - "test": "jest && npm run lint", + "test": "jest --coverage && npm run lint", "tdd": "jest --watch", "deploy": "ssh jordaneldredge.com sh < deploy.sh", "revert": "ssh jordaneldredge.com sh < revert.sh"