aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-03-26 09:36:18 +0800
committerMatthew Shao <me@matshao.com>2017-03-26 09:36:18 +0800
commitde9ecb7c300219282252e2b61dd687a12af5d8f5 (patch)
treeb450fccbf33d63db19f933f6f567df69f171a64f
parent31a45ddaaa46d2f16b05a27b949dfd4ae09fcaa4 (diff)
downloadmitmproxy-de9ecb7c300219282252e2b61dd687a12af5d8f5.tar.gz
mitmproxy-de9ecb7c300219282252e2b61dd687a12af5d8f5.tar.bz2
mitmproxy-de9ecb7c300219282252e2b61dd687a12af5d8f5.zip
[web] Add JS coverage to codecov.
-rw-r--r--.travis.yml6
-rw-r--r--web/package.json4
2 files changed, 7 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index e64bf6d4..d411ac0b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -52,8 +52,10 @@ matrix:
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- install: cd web && yarn
- script: npm test
+ install:
+ - cd web && yarn
+ - yarn global add codecov
+ script: npm test && codecov
cache:
yarn: true
directories:
diff --git a/web/package.json b/web/package.json
index f0b3ae6a..8e4140bf 100644
--- a/web/package.json
+++ b/web/package.json
@@ -13,7 +13,9 @@
],
"unmockedModulePathPatterns": [
"react"
- ]
+ ],
+ "coverageDirectory":"./coverage",
+ "collectCoverage": true
},
"dependencies": {
"bootstrap": "^3.3.7",