0.2.0 • Published 9 years ago
devicelab-bot v0.2.0
App installer bot 
Installation
./install/install.shUsage
Start your node server
HOCKEY_API_TOKEN==<token> npm startYou can now install your apps to your devicelab from http://localhost:3000.
An API documentation is available at http://localhost:3000/docs.
Using PM2
HOCKEY_API_TOKEN==<token> pm2 start src/server --interpreter ./node_modules/.bin/babel-nodeServing the bot with Ngrok
Ngrok is packaged with this.
You can thus serve your devicelab bot to the world with:
./ngrok http localhost:3000You can now access the devicelab bot anywhere with http://[ngrox id].ngrok.io.
API Usage
You can also install your app by calling /install?appName=<your-app-name>.
This will return a build id, that you can use to retrieve logs by calling /build/:buildId
API clients available
Using the CLI
npm i -g devicelab-bot
HOCKEY_API_TOKEN==<token> devicelab-bot install <appName>
HOCKEY_API_TOKEN==<token> devicelab-bot --helpDevelopment
Commiting with Commitizen
yarn commitTesting
yarn testBuilding the CLI tools
yarn build:cli-tools