Skip to content

Commit 22be10e

Browse files
committed
Ship to codecov.io 🚢
1 parent d3541b4 commit 22be10e

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.travis.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
language: node_js
22
node_js:
3-
- "4"
3+
- "4"
44
sudo: false
55
before_script:
6-
- wget http://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip
7-
- unzip BrowserStackLocal-linux-x64.zip
8-
- "./BrowserStackLocal $BROWSER_STACK_ACCESS_KEY localhost,8001,0 > /dev/null &"
9-
- sleep 10
6+
- wget http://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip
7+
- unzip BrowserStackLocal-linux-x64.zip
8+
- "./BrowserStackLocal $BROWSER_STACK_ACCESS_KEY localhost,8001,0 > /dev/null &"
9+
- sleep 10
10+
after_success:
11+
- cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
1012
branches:
1113
except:
1214
- latest

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module.exports = function (config) {
9999

100100
if (process.env.USE_CLOUD) {
101101
config.browsers = Object.keys(customLaunchers)
102-
config.reporters = [ 'dots' ]
102+
config.reporters = [ 'dots', 'coverage' ]
103103
config.browserDisconnectTimeout = 10000
104104
config.browserDisconnectTolerance = 3
105105
config.browserNoActivityTimeout = 30000

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"babel-eslint": "^3.1.23",
3737
"babel-loader": "^5.0.0",
3838
"bundle-loader": "^0.5.2",
39+
"codecov.io": "^0.1.6",
3940
"css-loader": "^0.19.0",
4041
"eslint": "1.4.0",
4142
"eslint-plugin-react": "3.3.2",
@@ -48,6 +49,7 @@
4849
"karma": "^0.13.13",
4950
"karma-browserstack-launcher": "^0.1.4",
5051
"karma-chrome-launcher": "^0.2.0",
52+
"karma-coverage": "^0.5.3",
5153
"karma-firefox-launcher": "^0.1.6",
5254
"karma-mocha": "^0.2.0",
5355
"karma-mocha-reporter": "^1.1.1",

0 commit comments

Comments
 (0)