npm.io
0.2.0 • Published 9 years agoCLI

devicelab-bot

Licence
MIT
Version
0.2.0
Deps
12
Vulns
5
Weekly
0
Stars
6

App installer bot Build Status

Installation

./install/install.sh

Usage

Start your node server

HOCKEY_API_TOKEN==<token> npm start

You 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-node
Serving the bot with Ngrok

Ngrok is packaged with this.

You can thus serve your devicelab bot to the world with:

./ngrok http localhost:3000

You 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 --help

Development

Commiting with Commitizen
yarn commit
Testing
yarn test
Building the CLI tools
yarn build:cli-tools