How to set up github.com organization in travis-ci.org that is already setup in travis-ci.com?

My group has already setup our github organization to build private projects in travis-ci.com. We now have public open source repositories in the same organization that we’d like to build and want to set up those public open source repositories to build in travis-ci.org. But I’m having trouble doing this.

Our github organization, nyfix, has a user @travis-ullink setup in travis-ci com, which is a paid account building our private repositories.

We now have public open source repositories in github nyfix that we’d like to build. libzmq is an example of one of these projects. We’d like to setup these public projects to build in travis-ci org.

I’ve tried creating a new github user @travis-nyfix-opensource which is an owner of the organization and an admin on all the public repositories we’d like to build. When I logon to travis-ci org with that user:
o I’m redirected to github “Authorize Travis CI for Open Source”.
o On this page in the “Organization access” section, the nyfix organization is listed.
o However is has a red X next to it.
o When I hover over the X, it says “This application cannot access the organization’s private data or modify it’s public data.”
o But in github @travis-nyfix-opensource is an Owner of the nyfix organization and an Admin for all the public projects that we want to build in travis-ci org.
o I click the “Authorize travis-ci” button anyway.
o This bring me to https://travis-ci.org/getting_started
o No repositories are listed under “My Repositories”.
o The " First time here? Let’s get you started!" is displayed.
o I click on the “ACTIVATE ALL REPOSITORIES USING GITHUB APPS” button.
o This takes me to github to “Settings” -> “Applications” -> “Installed GitHub Apps” -> “Travis CI” Configure page.
o I configure the Travis CI app for “All repositories”.
o I click on the “Approve & Install” button.
o I’m then redirect to https://travis-ci.com/account/repositories
o But note this is travis-ci com (not travis-ci org).
o If from this travis-ci com page, I click on the nyfix organization, I do see every repository in nyfix both public and private.
o But its showing me the settings for both the public and private repositories in travis-ci com. This is no different then what I see when I logon with @travis-ullink on travis-ci com
o I then enter the URL travis-ci org.
o No repositories are listed under “My Repositories”.
o The " First time here? Let’s get you started!" is displayed.
o If I click on the “ACTIVATE ALL REPOSITORIES USING GITHUB APPS” button.
o This takes me to github to “Settings” -> “Applications” -> “Installed GitHub Apps” -> “Travis CI” Configure page.
o Where the Travis CI app is already has “Repository access” set to “All repositories”.
o If I go to * This takes me to github to “Settings” -> “Applications” -> “Authorized Oauth Apps”, the app “Travis CI for Open Source” is listed.
o If select “Travis CI for Open Source”, it displays a page with the configuration for “Travis CI for Open Source”.
o On that page in the “Organization access” section, the nyfix organization is displayed, but it has a red X next to it.

If I already have my organization setup in travis-ci com to build private projects, how can I setup that same organization in travis-ci org to build the public projects?

Thanks for your help.

Please visit https://github.com/organizations/<your_organization_name>/settings/oauth_application_policy and grant “Travis CI for Open Source” application for your organization. This will change the “Denied” permission on your organization so you will be able to see your repositories on travis-ci.org that belongs to your organization.

Thanks.

2 Likes

Thanks. that worked.

It’s a bitter sweet victory to get it working. Because I just noticed that on Sep 15, Travis CI announced that travis-ci.org is merging with travis-ci.com and travis-ci.com is shutting down Dec 31 2020.

1 Like

open your organization (https://github.com/organizations/your-organization-name/settings/installations/), click button Travis CI , configer Repository access for you want