Last Updated: February 25, 2016
· ihid

Fixing "Repository Not Found" for Private Repos on Travis

If you're still seeing "Repository not found" after following the instructions for setting up private repos in the Travis docs, you might need to make an edit to your Gemfile.

The problem is that the github: option in the Gemfile uses the git syntax:


For Travis you need to be using the SSH syntax:


Simply putting this at the top of your Gemfile should fix everything nicely:

git_source(:github){ |repo| "git@github.com:#{repo}.git" }

Happy testing :)