Skip to content

Commit

Permalink
ch(Integration): Code coverage Integration
Browse files Browse the repository at this point in the history
 - Added travis.yml
 - Added Coveralls badge to the readme
[Finishes #158580405]
  • Loading branch information
Kevin Eze authored and Kevin Eze committed Sep 28, 2018
1 parent 128a68d commit 3263dde
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 100 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ coverage
db.json
client/src/middleware
client/src/components/Home/components/Preloader.jsx
.coveralls.yml
coverage
*.snap
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
after_success:
- npm run coveralls
- npm run codecov
email: false
language: node_js
node_js:
- "8.9.2"
script: npm test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# andela-teams-2
[![Andela](https://andela-badge.herokuapp.com/)](https://andela.com)
[![Coverage Status](https://coveralls.io/repos/github/andela/taps-client/badge.svg?branch=code-coverage-integration-158580405)](https://coveralls.io/github/andela/taps-client?branch=code-coverage-integration-158580405)
100 changes: 0 additions & 100 deletions client/src/tests/__snapshots__/index.test.jsx.snap

This file was deleted.

56 changes: 56 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"scripts": {
"heroku-postbuild": "webpack --config webpack.prod.js --progress",
"build": "webpack",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"start": "node --require babel-register index.js",
"start:dev": "nodemon --require babel-register index.js",
"dev": "webpack-dev-server --config webpack.config.dev.js --port 8081",
Expand Down Expand Up @@ -39,6 +40,7 @@
"babel-plugin-transform-react-pure-class-to-function": "^1.0.1",
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
"babel-preset-env": "^1.6.1",
"coveralls": "^3.0.2",
"enzyme": "^3.4.1",
"enzyme-adapter-react-16": "^1.2.0",
"eslint": "^4.19.1",
Expand Down

0 comments on commit 3263dde

Please sign in to comment.