Skip to content

Commit

Permalink
feat(ci): integrates coveralls (#204)
Browse files Browse the repository at this point in the history
* feat(ci): coveralls integration

* docs(readme): change coveralls badge link to org repo

* fix(ci): update coveralls config
  • Loading branch information
artyorsh authored and malashkevich committed Dec 11, 2018
1 parent 2e9e748 commit 0e38a4f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: 039agDOxoHh0NPnBO3GywRBmDejtWkJ5n
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ matrix:
branches:
only:
- next

install:
- npm install

script:
- scripts/ci/travis-ci-script.sh
- scripts/ci/travis-ci-script.sh
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="https://cdn.rawgit.com/akveo/react-native-ui-kitten/085afb52/docs/assets/banner.png"/>

# react-native-ui-kitten [![Build Status](https://travis-ci.com/akveo/react-native-ui-kitten.svg?branch=next)](https://travis-ci.com/akveo/react-native-ui-kitten) [![Dependency Status](https://david-dm.org/akveo/react-native-ui-kitten/status.svg)](https://david-dm.org/akveo/react-native-ui-kitten) [![npm](https://img.shields.io/npm/dt/react-native-ui-kitten.svg)](https://www.npmjs.com/package/react-native-ui-kitten) [![npm](https://img.shields.io/npm/l/react-native-ui-kitten.svg)]()
# react-native-ui-kitten [![Build Status][badge-travis]][link-travis] [![Coverage Status][badge-coveralls]][link-coveralls] [![Dependency Status][badge-david]][link-david] [![npm][badge-downloads]][link-downloads] [![npm][badge-license]]()

This branch contains sources of something really awesome.
We do what we did before but in a new way.
Expand Down Expand Up @@ -29,3 +29,14 @@ License

Enjoy!
We're always happy to receive your feedback.

[badge-travis]: https://travis-ci.com/akveo/react-native-ui-kitten.svg?branch=next
[badge-coveralls]: https://coveralls.io/repos/github/akveo/react-native-ui-kitten/badge.svg?branch=next
[badge-david]: https://david-dm.org/akveo/react-native-ui-kitten/status.svg
[badge-downloads]: https://img.shields.io/npm/dt/react-native-ui-kitten.svg
[badge-license]: https://img.shields.io/npm/l/react-native-ui-kitten.svg

[link-travis]: https://travis-ci.com/akveo/react-native-ui-kitten
[link-coveralls]: https://coveralls.io/github/akveo/react-native-ui-kitten?branch=next
[link-david]: https://david-dm.org/akveo/react-native-ui-kitten
[link-downloads]: https://www.npmjs.com/package/react-native-ui-kitten
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = {
tsConfig: './tsconfig.jest.json',
},
},
cacheDirectory: './dist/jest',
cacheDirectory: './dist/jest/cache',
coverageDirectory: './dist/jest/coverage',
moduleNameMapper: pathsToModuleNameMapper(jestConfig.compilerOptions.paths, {
prefix: '<rootDir>/',
}),
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint:fix": "npm run lint:src-fix && npm run lint:pg-fix",
"ci:lint": "npm run lint",
"ci:build": "npm run build:pg",
"ci:test": "npm test",
"ci:test": "npm test -- --coverage && cat ./dist/jest/coverage/lcov.info | coveralls",
"test": "jest"
},
"devDependencies": {
Expand All @@ -36,11 +36,12 @@
"@types/react-test-renderer": "^16.0.3",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"coveralls": "^3.0.2",
"husky": "^1.1.2",
"jest": "^23.6.0",
"metro-react-native-babel-preset": "^0.49.0",
"react-addons-test-utils": "^15.6.2",
"react": "^16.6.0",
"react-addons-test-utils": "^15.6.2",
"react-native": "^0.57.4",
"react-native-mock": "^0.3.1",
"react-native-testing-library": "^1.3.0",
Expand Down

0 comments on commit 0e38a4f

Please sign in to comment.