Add Code Climate

This commit is contained in:
Alex Demchenko
2020-03-14 09:58:11 +01:00
parent 53097bab40
commit 9ddcbbc590
3 changed files with 15 additions and 9 deletions

View File

@@ -3,8 +3,6 @@
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
orbs:
codecov: codecov/codecov@1.0.5
jobs:
build:
docker:
@@ -35,10 +33,18 @@ jobs:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run:
name: Setup Code Climate test-reporter
command: |
# download test reporter as a static binary
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run: yarn run check
# run tests!
- run: yarn test
- codecov/upload:
file: ./coverage/lcov.info
- run:
name: Run tests
command: |
./cc-test-reporter before-build
yarn test
./cc-test-reporter after-build --coverage-input-type lcov --exit-code $?

View File

@@ -1,5 +1,5 @@
# React Native Flyer UI
[![CircleCI](https://circleci.com/gh/flyerhq/react-native-flyer-ui.svg?style=shield)](https://circleci.com/gh/flyerhq/react-native-flyer-ui)
[![codecov](https://codecov.io/gh/flyerhq/react-native-flyer-ui/branch/develop/graph/badge.svg)](https://codecov.io/gh/flyerhq/react-native-flyer-ui)
[![Test Coverage](https://api.codeclimate.com/v1/badges/d17d30c78c367e8bf53a/test_coverage)](https://codeclimate.com/github/flyerhq/react-native-flyer-ui/test_coverage)
[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fflyerhq%2Freact-native-flyer-ui%2Fdevelop%2Fpackage.json)](https://github.com/plantain-00/type-coverage)

View File

@@ -1,7 +1,7 @@
{
"name": "@flyerhq/react-native-flyer-ui",
"version": "0.0.4",
"description": "",
"description": "Flyer Chat UI",
"homepage": "https://github.com/flyerhq/react-native-flyer-ui#readme",
"main": "lib/index.js",
"types": "lib/index.d.ts",