nodezoo.com micro-service handling travis meta data
npm install nodezoo-travis![Nodezoo][Banner]
A micro-service that provides Travis data for [NodeZoo][]. This micro-service depends
on the Travis and NPM registries but also caches retrieved data to reduce load on both
public registries.
If you're using this microservice, and need help, you can:
- Post a [github issue][],
- Tweet to [@nodezoo][],
- Ask on the [Gitter][gitter-url].
- [Nodezoo: The complete system][System]
To run in isolated mode,
- Clone this repository locally,
- Run npm install,
- Run npm start isolated,
__Note:__ In memory storage is used over redis in isolated mode.
A simple http service is supported and can be called using Curl or other Rest client.
The default port is 8053. It can be changed using the TRAVIS_PORT environment
variable.
```
curl -d '{"role":"travis","cmd":"get","name":"hapi"}' http://localhost:8052/act
#### TRAVIS_HOST
- The host to listen on in isolated mode.
- Defaults to localhost
#### TRAVIS_PORT
- The port to listen on in isolated mode.
- Defaults to 8051 .
#### TRAVIS_REDIS_HOST
- The host redis will listen on.
- Defaults to localhost
#### TRAVIS_REDIS_PORT
- The port redis listen on.
- Defaults to 6379 .
#### TRAVIS_ISOLATED
- Starts isolated mode.
- Defaults to false.
#### TRAVIS_REGISTRY
- Change the npm registry used to validate the module name.
- Defaults to http://registry.npmjs.org/.
json
{
"entity$": "-/-/travis_cache",
"name": "seneca-web",
"url": "https://travis-ci.org/senecajs/seneca-web",
"buildId": "1398674",
"active": "true",
"buildState": "passed",
"lastBuilt": "2016-02-29T17:05:48Z",
"cached": "1460328882872",
"id": "seneca-web"
}
`Messages Handled
$3
Returns Travis specific data for the module name provided.`js
seneca.act(role:travis,cmd:get, {name:'seneca'}, (err, data) => {})
`$3
An alias for role:travis,cmd:get, allows integration into the wider nodezoo-system.`js
seneca.act(role:info,req:part, {name:'seneca'}, (err, reply) => {})
`Messages Emitted
$3
Called in response to a call to
role:info,req:part.`js
seneca.add(role:info,res:part, (msg, done) => {})
``- [Code of Conduct][CoC]
If you feel you can help in any way, be it with documentation, examples, extra testing, or new
features please get in touch.
[Banner]: https://raw.githubusercontent.com/nodezoo/nodezoo-org/master/assets/logo-nodezoo.png
[Lead]: https://github.com/mcdonnelldean
[Sponsor]: http://www.nearform.com/
[Org]: https://github.com/nodezoo
[CoC]: https://github.com/nodezoo/nodezoo-org/blob/master/CoC.md
[MIT]: ./LICENSE
[github issue]: https://github.com/nodezoo/nodezoo-npm/issues
[@nodezoo]: http://twitter.com/nodezoo
[gitter-url]: https://gitter.im/nodezoo/nodezoo-org
[System]: https://github.com/nodezoo/nodezoo-system
[NodeZoo]: https://github.com/rjrodger/nodezoo