Giter Club home page Giter Club logo

hubot-travis-ci's Introduction

hubot-travis-ci

A hubot script used to interact with Travis CI.

Work with both Travis CI for open source and Travis Pro for private projects.

Installation

npm install hubot-travis-ci --save

Add "hubot-travis-ci" to external-scripts.json.

Configuration

HUBOT_TRAVIS_ACCESS_TOKEN - API key
HUBOT_TRAVIS_API_HOST - "https://api.travis-ci.com" or "https://api.travis-ci.org"
HUBOT_TRAVIS_ORGNAME - Organization, user, or project name
HUBOT_TRAVIS_URL - "https://<host>.travis-ci.com" or "https://travis-ci.org"

The Travis integration token is semi-secret. Use the official ruby client to generate an encrypted token.

Commands

hubot travis restart <repo> - Restart a travis build
hubot travis cancel <repo> - Cancel a travis build

Notes

This script was originally built for the Slack hubot integration. To get build notifications posted back into Slack setup the existing Travis CI integration.

Refer to the Travis CI API docs.

hubot-travis-ci's People

Contributors

danpaz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hubot-travis-ci's Issues

ERROR SyntaxError: Unexpected token a

I've set all required env variables, but still get this:

5-12-12T21:53:26.769649+00:00 app[web.1]: [Sat Dec 12 2015 21:53:26 GMT+0000 (UTC)] INFO hubot-redis-brain: Successfully authenticated to Redis
2015-12-12T21:53:26.656473+00:00 heroku[web.1]: Process exited with status 0
2015-12-12T21:53:26.771367+00:00 app[web.1]: [Sat Dec 12 2015 21:53:26 GMT+0000 (UTC)] INFO hubot-redis-brain: Data for hubot brain retrieved from Redis
2015-12-12T21:54:01.188589+00:00 app[web.1]: [Sat Dec 12 2015 21:54:01 GMT+0000 (UTC)] ERROR SyntaxError: Unexpected token a
2015-12-12T21:54:01.188593+00:00 app[web.1]:   at Object.parse (native)
2015-12-12T21:54:01.188595+00:00 app[web.1]:   at /app/node_modules/hubot-travis-ci/src/hubot-travis-ci.coffee:50:11, <js>:35:23
2015-12-12T21:54:01.188596+00:00 app[web.1]:   at IncomingMessage.<anonymous> (/app/node_modules/hubot/node_modules/scoped-http-client/src/index.js:95:22)
2015-12-12T21:54:01.188597+00:00 app[web.1]:   at IncomingMessage.emit (events.js:117:20)
2015-12-12T21:54:01.188598+00:00 app[web.1]:   at _stream_readable.js:944:16
2015-12-12T21:54:01.188598+00:00 app[web.1]:   at process._tickCallback (node.js:448:13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.