Skip to content
A hubot script used to interact with Travis CI
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
script
src
test
.gitignore
LICENSE
README.md
index.coffee
package.json

README.md

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.

You can’t perform that action at this time.