Skip to content

Commit

Permalink
add travis & coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
m860 committed Jan 12, 2018
1 parent d5a9fd0 commit f791dab
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-ci
repo_token: Xumtw3nQF1YHAwbI4zPr69yGiqjqa3PJ7
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
.idea
dist
.DS_Store
npm-debug.log
npm-debug.log
coverage
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- '6'
after_success:
- npm run coverage
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
[![npm license](https://img.shields.io/npm/l/@m860/react-skeleton.svg)](https://www.npmjs.com/package/@m860/react-skeleton)
[![npm download](https://img.shields.io/npm/dm/@m860/react-skeleton.svg)](https://www.npmjs.com/package/@m860/react-skeleton)
[![npm download](https://img.shields.io/npm/dt/@m860/react-skeleton.svg)](https://www.npmjs.com/package/@m860/react-skeleton)
[![Build Status](https://travis-ci.org/m860/react-skeleton.svg?branch=master)](https://travis-ci.org/m860/react-skeleton)
[![Coverage Status](https://coveralls.io/repos/github/m860/react-skeleton/badge.svg)](https://coveralls.io/github/m860/react-skeleton)
<!-- endbadge -->

[Documentation & Examples](./API.md)
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "jest --verbose",
"test": "jest",
"dev": "webpack-dev-server --host 0.0.0.0 --progress --port 3000 --content-base src/",
"build": "./build.sh",
"publish": "npm publish --access public",
"win-dev": "set NODE_ENV=development&&webpack-dev-server --host 0.0.0.0 --inline --progress --colors --port 3000 --content-base src/",
"win-build": "set NODE_ENV=production&&webpack --progress --profile --colors"
"win-build": "set NODE_ENV=production&&webpack --progress --profile --colors",
"coverage": "cat ./coverage/lcov.info | coveralls"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -62,5 +63,9 @@
"prop-types": "^15.6.0",
"react": "^16.2.0",
"react-dom": "^16.2.0"
},
"jest": {
"verbose": true,
"collectCoverage": true
}
}

0 comments on commit f791dab

Please sign in to comment.