From 9a16afab5f015b9884539bcf53a27fff775badad Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 27 Apr 2020 17:05:11 +0200 Subject: [PATCH] add codeclimate --- .travis.yml | 6 ++++++ README.md | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 42c34e6..e94e6b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,15 @@ node_js: node cache: npm: true +# before_script: +# - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter +# - chmod +x ./cc-test-reporter +# - './cc-test-reporter before-build' + script: # will run `npm ci` automatically here - npm test + # - './cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT' # - npm run build notifications: diff --git a/README.md b/README.md index 74278dc..40e1300 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ > 🎣 React hooks & components on top of squid.js [![Build Status](https://travis-ci.com/oceanprotocol/react.svg?token=3psqw6c8KMDqfdGQ2x6d&branch=master)](https://travis-ci.com/oceanprotocol/react) +[![Maintainability](https://api.codeclimate.com/v1/badges/1e93b2b3e198c3670b50/maintainability)](https://codeclimate.com/repos/5ea6f2fec372a101a1000929/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/1e93b2b3e198c3670b50/test_coverage)](https://codeclimate.com/repos/5ea6f2fec372a101a1000929/test_coverage) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-7b1173.svg?style=flat-square)](https://github.com/prettier/prettier) [![js oceanprotocol](https://img.shields.io/badge/js-oceanprotocol-7b1173.svg)](https://github.com/oceanprotocol/eslint-config-oceanprotocol) @@ -12,7 +14,7 @@ ![iu](https://user-images.githubusercontent.com/90316/80356686-1650c080-887a-11ea-854e-bdc2bbdb0c20.jpeg) -**WE ARE IN HARDWARE MODE. This project is in a conceptual phase and nothing works.** +**WE ARE IN HARDWARE MODE. This project is in a conceptual phase and most stuff does not work yet.** ---