Skip to content

Commit

Permalink
update script && update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaSamir11 committed Jan 23, 2021
1 parent ab2ead6 commit 18a138f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
__tests__
.vscode
Examples/
coverage
.idea
node_modules/
.prettierrc.js
.eslintrc.js
.travis.yml
babel.config.js
jest.setup.js
19 changes: 10 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ node_js:
cache:
npm: false

jobs:
include:
- stage: Produce Coverage
node_js: node
script: jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage

install:
- npm ci

script:
- npm run lint
- npm run test:ci
jobs:
include:
- stage: Produce Coverage && run test && run lint
node_js: node
script:
- npm run lint
- npm run test
- npm run test:package && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
# - npm run test:example && cd Example && cat ./coverage/lcov.info | ../node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
# - npm run test:ci
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<details>
<summary>Pre-Release(v3.1.0-beta), 2-2-2021</summary>

1- add callback if flow has finished, to be like
1- Add promise if flow has finished, to be like

```javascript
InAppReview.RequestInAppReview()
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "react native in app review, to rate on Play store, App Store, Generally, the in-app review flow (see figure 1 for play store, figure 2 for ios) can be triggered at any time throughout the user journey of your app. During the flow, the user has the ability to rate your app using the 1 to 5 star system and to add an optional comment for play store only. Once submitted, the review is sent to the Play Store or App store and eventually displayed.",
"main": "index.js",
"scripts": {
"test": "jest --watch",
"test:package": "jest --ci --coverage __tests__/InAppReview-test.js",
"test:example": "cd Example && jest --ci --coverage",
"test": "npm run test:package && npm run test:example",
"test:ci": "jest --ci --coverage",
"lint": "eslint . --fix"
},
Expand Down

0 comments on commit 18a138f

Please sign in to comment.