Skip to content

Commit e8778bc

Browse files
committed
Add Travis CI and coveralls
1 parent 0702263 commit e8778bc

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
3+
node_js:
4+
- 7
5+
6+
after_success: npm run test:coverage

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"flow": "flow check",
1111
"test": "jest",
1212
"test:watch": "npm test -- --watch",
13-
"test:coverage": "npm test -- --coverage",
13+
"test:coverage": "npm test -- --coverage && npm run coveralls",
14+
"coveralls": "cat ./coverage/lcov.info | coveralls",
1415
"prebuild": "npm run clean && npm run flow && npm run lint && npm run test:coverage",
1516
"build": "babel src --out-dir lib --ignore tests",
1617
"postbuild": "npm run flow:csrc && copyfiles -e '**/tests/*' ./*.* LICENSE -a -f lib",
@@ -55,6 +56,7 @@
5556
"babel-preset-es2015": "^6.24.1",
5657
"babel-preset-react": "^6.23.0",
5758
"copyfiles": "^1.2.0",
59+
"coveralls": "^2.13.0",
5860
"eslint": "^3.13.0",
5961
"eslint-config-airbnb": "^14.1.0",
6062
"eslint-config-jss": "^3.0.0",

0 commit comments

Comments
 (0)