1 | ## ci-helper
|
2 | ##### Command-line utility for use with Kinvey and Bitbucket.
|
3 |
|
4 | ### Usage
|
5 | `npm i -g ci-helper`
|
6 |
|
7 | ##### Generate and output OTP to console:
|
8 | `ci-helper --op=otp --secret=xyz123`
|
9 |
|
10 | ##### Get aspect of Kinvey status such as 'version', 'status'.
|
11 | `ci-helper --op=get-kinvey-status --key=version`
|
12 |
|
13 | ##### Wait for Kinvey Deployment:
|
14 | ```
|
15 | In order for this to work you have to:
|
16 | 1. Make sure these environment variables are set:
|
17 | - PACKAGE_VERSION
|
18 | - BITBUCKET_DEPLOYMENT_ENVIRONMENT (preset by Bitbucket)
|
19 | - KINVEY_USER_SECRET
|
20 | - KINVEY_SERVICE_ID
|
21 | 2. kinvey profile create <profile name>
|
22 | 3. kinvey flex deploy
|
23 |
|
24 | Then call:
|
25 |
|
26 | ci-helper --op=wait-kinvey-deploy
|
27 | ```
|