Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:52:09+00:00 2026-06-16T01:52:09+00:00

The Context: I’ve open-sourced a repository , which is tested by Travis-CI. Travis offers

  • 0

The Context:

I’ve open-sourced a repository, which is tested by Travis-CI. Travis offers build-notification hooks for the test runs, so you can get notified inside IRC, Flowdock, Campfire and HipChat. To configure these hooks you have to add settings to your .travis.yml config file, which is public. For Hipchat it looks like this:

notifications:
  hipchat: [api token]@[room name]

If I’d just put my token there in plain text everyone could see my API Token and access/spam my chatrooms. Among other things that’s why Travis added secure environemt variables. Basically you can encrypt strings with your key and bind them specifically to the repository, so Travis can access the secret API keys.

What you do locally:

gem install travis
travis encrypt github-user/repo MY_SECRET_ENV=super_secret

What you put into .travis.yml

secure: <encrypted string here>

The Problem:

Unfortunately the documentation isn’t overly verbose, google doesn’t help, stackoverflow doesn’t help yet and I can’t get this to work.

Here is my first try:

travis encrypt github-user/repo HIPCHAT=super_secret

secure: <encrypted string here>
notifications:
  hipchat: <%= ENV['HIPCHAT'] %>@hipchat-room

As this doesn’t work I went to travis irc on freenode and that’s what they suggested

travis encrypt github-user/repo key@hipchat-room

notifications:
  hipchat:
    secure: <encrypted string here>

As you might have guessed (why am I writing this question again?) this doesn’t work either.
I hope you can help me fix this problem. Thank you very much

Edit: I’m very suspicious of myself. I tripple-checked the API key, it is working. It’s up to Travis.

2Edit: As this appears to be a bug here is the corresponding GitHub issue

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:52:10+00:00Added an answer on June 16, 2026 at 1:52 am

    Stephan,

    Could you please try this:

    notifications:
      hipchat:
        - secure: "encrypted string"
    

    If you don’t want to clutter up your commit history, you can push it on a separate branch and Travis should test that branch for you.

    –Henrik

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Context Clojure Agents are NOT sent new values. They are sent a function which
Context: Windows7, VBScript, ADODB and ADOX. I have written some VBScript code which creates
Context: I have been working on and off on an application which uses a
context: I have an ajax request which return data structure with an html key.
Context Suppose I have protocols ICursor, IFoo, IBar then I can have a function
Context I need to build a formset to allow opening hours to be set
context.EntitySet.AsEnumerable().OrderBy() returns an IOrderedEnumerable which is guaranteed to be ordered but it looks like
Context I am writing a simple JUnit test for the MyObject class. A MyObject
Context is C#,.Net framework. Is it the application that runs without any need to
Context I have an overlay window ( TYPE_SYSTEM_ALERT ) which is full screen. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.