How do you remove a Github repository for Travis CI tests?

Travis Ci

Travis Ci Problem Overview


I created a Travis CI test using a Github repository. I can't seem to find any information about how to remove it from the Travis CI test page. Is this at all possible?

Travis Ci Solutions


Solution 1 - Travis Ci

Yes!

Log in to Travis CI (travis-ci.org) under your account.

Then check on the left sidebar. You should see a My repositories label followed by a plus sign (i.e. +).

Click on that plus sign (i.e. +).

It will lead you to a page listing all your Github repositories with an on/off toggle beside each one.

Just put the toggle to "off" for the repositories you don't want in Travis CI.

Hope this helps!

Solution 2 - Travis Ci

The accepted answer doesn't appear to work when using the new Travis marketplace app at the time of writing - there's no "on/off" toggle for repositories.

Instead, you need to just grant access to the repositories you want Travis to access in Github. On your profile page in Travis, click "Manage repositories on Github":

manage repositories on Github

Then, under "Repository access", click "Only select repositories":

only select repositories

You can then add / remove the repositories you want to show up in the Travis CI test page.

Solution 3 - Travis Ci

There are two platforms which work differently:

  • travis-ci.org - for legacy OSS
  • travis-ci.com - for everything now, recommended over travis-ci.org for all new projects

travis-ci.org

To see and control which repositories of a given organization are enabled on travis-ci.org, visit:

https://travis-ci.org/organizations/<your-org>/repositories

Replacing <your-org> with your organization.

Assuming travis-ci.org is enabled for your organization, you should see something like this:

travis-ci.org example repository list

The toggle widget next to each repository controls whether the repository is enabled on travis-ci.org.

travis-ci.com

To see which repositories of a given organization are enabled on travis-ci.com, you can visit:

https://travis-ci.com/organizations/<your-org>/repositories

Replacing <your-org> with your organization.

Assuming travis-ci.com is enabled for your organization, you should see something like this:

travis-ci.com example repository list

The "Manage repositories on GitHub" button lets you control, from the GitHub side, which repositories are exposed to travis-ci.com.

Solution 4 - Travis Ci

This worked for me...

After deleting the unwanted repositories (In the repository settings, scroll to the bottom and follow deletion instructions), Navigate to GitHub Repositories and 'Leave' the repository if it is still listed.

Navigate to your Travis CI Profile, click 'Sync account (green button), and the unwanted repos should now be absent.

Solution 5 - Travis Ci

For those who are still confused and are not able to find their way, there are two ways actually.

First - Via GitHub

  1. Log on to your GitHub account.
  2. Click on your profile icon on top-right hand corner and click on settings. Github - Account Settings
  3. Navigate to Applications present at the bottom of your side-bar and under "Installed GitHub Apps" click Configure for Travis-CI. Configure Travis
  4. Under Repository access, choose "Only select repositories". Select Repositories

Second - Via Travis

  1. Log on to app.travis-ci.com and navigate to home page/landing page. (Click on the logo)
  2. Click on the small + icon present in your side-bar. Travis - Settings
  3. Click on Migrate. Travis Migrate
  4. Click on "Activate all repositories using GitHub Apps. travis - Manage Repo
  5. Select the repositories and you are done. Select Repositories

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1715156View Question on Stackoverflow
Solution 1 - Travis CiDominic JodoinView Answer on Stackoverflow
Solution 2 - Travis CiMichael BerryView Answer on Stackoverflow
Solution 3 - Travis CictruedenView Answer on Stackoverflow
Solution 4 - Travis CiFinger Picking GoodView Answer on Stackoverflow
Solution 5 - Travis CiSohailAQView Answer on Stackoverflow