Skip to content

Commit 0fa3730

Browse files
committed
Added Travis + Coveralls
1 parent fc9e282 commit 0fa3730

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ cache:
1212

1313
script:
1414
- npm run lint
15+
- npm run coverage
1516
- npm run build

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# react-context-mutex
22
[![npm version](https://badgen.net/npm/v/react-context-mutex)](https://www.npmjs.com/package/react-context-mutex)
33
[![Build Status](https://travis-ci.com/marcveens/react-context-mutex.svg?branch=master)](https://travis-ci.com/marcveens/react-context-mutex)
4+
[![Coverage Status](https://coveralls.io/repos/github/marcveens/react-context-mutex/badge.svg?branch=master)](https://coveralls.io/github/marcveens/react-context-mutex?branch=master)
45

56
A mutex implementation using React and React context. It will prevent a function from running multiple times, until you allow it to run again.
67

package-lock.json

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"scripts": {
1313
"test": "jest",
14+
"coverage": "jest --coverage --coverageReporters=text-lcov | coveralls",
1415
"build": "rollup -c",
1516
"lint": "tslint -p tsconfig.json",
1617
"clean": "rimraf dist",
@@ -33,6 +34,7 @@
3334
"devDependencies": {
3435
"@types/jest": "^24.9.0",
3536
"@types/node": "^12.12.25",
37+
"coveralls": "^3.0.9",
3638
"jest": "^24.9.0",
3739
"rimraf": "^3.0.0",
3840
"rollup": "^1.29.0",

0 commit comments

Comments
 (0)