Skip to content

Commit 9c77a69

Browse files
authored
Merge pull request #9 from codevor/develop
Added travis and coveralls
2 parents 555efb4 + e7a6f5d commit 9c77a69

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

.codeclimate.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- '8'
5+
branches:
6+
only:
7+
- master
8+
cache:
9+
directories:
10+
- node_modules
11+
before_install:
12+
- yarn update
13+
install:
14+
- yarn install
15+
script:
16+
- yarn test
17+
- yarn coveralls

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# JS HTTP Status
22

3-
[![License][license-badge]][license-url]
3+
[![License][license-badge]][license-url] [![Coverage Status][coverage-badge]][coverage-url]
44

55
> A simple way to catch HTTP statuses with JavaScript.
66
@@ -34,3 +34,5 @@ Report bugs or do suggestions using the [issues](https://github.com/codevor/js-h
3434

3535
[license-badge]: https://img.shields.io/github/license/codevor/js-http-status.svg
3636
[license-url]: https://opensource.org/licenses/MIT
37+
[coverage-badge]: https://coveralls.io/repos/github/codevor/js-http-status/badge.svg?branch=master
38+
[coverage-url]: https://coveralls.io/github/codevor/js-http-status?branch=master

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"dev": "NODE_ENV=dev webpack --progress --colors --watch",
99
"build": "NODE_ENV=production webpack",
1010
"lint": "eslint src tests",
11-
"test": "jest --coverage --expand -i",
11+
"test": "jest --coverage --expand",
1212
"test:watch": "jest --watch",
1313
"prepublish": "yarn lint && yarn test && yarn clean && yarn build",
14-
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
14+
"coveralls": "cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
1515
},
1616
"repository": {
1717
"type": "git",

0 commit comments

Comments
 (0)