From 42418851e09fd19954f835db654c32dd683be410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Ko=C5=9Bcielniak?= Date: Wed, 13 Feb 2019 17:12:46 +0100 Subject: [PATCH] Add coverage, license and CI badges --- .circleci/config.yml | 2 +- README.md | 1 + package.json | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a1458ee..d9318b5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,7 +37,7 @@ jobs: command: "echo repo_token: $COVERALLS_REPO_TOKEN > ./.coveralls.yml" - run: name: Upload coverage to coveralls - command: cat ./coverage/lcov.info | npx coveralls + command: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js - save_cache: paths: - node_modules diff --git a/README.md b/README.md index 3a2a0e5..3dc5986 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # react-add-to-homescreen +[![CircleCI](https://circleci.com/gh/kkoscielniak/react-add-to-homescreen/tree/master.svg?style=svg)](https://circleci.com/gh/kkoscielniak/react-add-to-homescreen/tree/master) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Coverage Status](https://coveralls.io/repos/github/kkoscielniak/react-add-to-homescreen/badge.svg?branch=master)](https://coveralls.io/github/kkoscielniak/react-add-to-homescreen?branch=master) Bringing your PWA app to iOS. Evidently. diff --git a/package.json b/package.json index a13a0ae..2b9c83f 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,9 @@ ], "setupFiles": [ "./src/setupTests.js" - ] + ], + "verbose": true, + "collectCoverage": true }, "husky": { "hooks": {