Last Updated: February 25, 2016
·
1.359K
· 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:

'git://github.com/tenderlove/nokogiri.git'

For Travis you need to be using the SSH syntax:

git@github.com/tenderlove/nokogiri.git

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

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

Happy testing :)