diff --git a/.travis.yml b/.travis.yml index faf5235..da7f36b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,10 @@ language: node_js node_js: - "11" install: + - npm install -g codecov - npm install script: - npm run ci + - codecov notifications: email: false diff --git a/README.md b/README.md index 40808a9..cb23074 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Build Status](https://travis-ci.org/trekhleb/use-position.svg?branch=master)](https://travis-ci.org/trekhleb/use-position) [![npm version](https://badge.fury.io/js/use-position.svg)](https://badge.fury.io/js/use-position) +[![codecov](https://codecov.io/gh/trekhleb/use-position/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/use-position) React hook `usePosition()` allows you to fetch client's browser geolocation and/or subscribe to all further geolocation changes.