mirror of
https://github.com/zhigang1992/react-native-chat-ui.git
synced 2026-04-29 04:35:40 +08:00
Add Code Climate
This commit is contained in:
@@ -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 $?
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# React Native Flyer UI
|
||||
|
||||
[](https://circleci.com/gh/flyerhq/react-native-flyer-ui)
|
||||
[](https://codecov.io/gh/flyerhq/react-native-flyer-ui)
|
||||
[](https://codeclimate.com/github/flyerhq/react-native-flyer-ui/test_coverage)
|
||||
[](https://github.com/plantain-00/type-coverage)
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user