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 :)
Written by Jeremy Walker
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Tags
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#