All Projects → danwallach → travis-activate

danwallach / travis-activate

Licence: GPL-3.0 License
Activates Travis-CI builds for all repos in a given GitHub project

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to travis-activate

dlang-bot
dlang-bot for automated bugzilla, github, and trello references
Stars: ✭ 20 (+0%)
Mutual labels:  github-api, travis-ci
Awesome Github
A curated list of awesome GitHub guides, articles, sites, tools, projects and resources. 收集这个列表,只是为了更好地使用GitHub,欢迎提交pr和issue。
Stars: ✭ 1,962 (+9710%)
Mutual labels:  github-api, travis-ci
xiaomi-r3g-openwrt-builder
OpenWrt builder for any supported routers using Docker. Scheduled to run weekly
Stars: ✭ 25 (+25%)
Mutual labels:  travis-ci
containerized-golang-and-vuejs
This repository explores an application using docker, golang, and vuejs
Stars: ✭ 19 (-5%)
Mutual labels:  travis-ci
todo-list
TodoList using Ionic2/3 & Firebase: * PWA * SSO Google plus. * Share list via QRcode. * Upload image from Camera or Storage. * Speech Recognition.
Stars: ✭ 18 (-10%)
Mutual labels:  travis-ci
argocd-operator-helm
[DEPRECATED] Argo CD Operator (Helm) installs Argo CD in OpenShift and Kubernetes.
Stars: ✭ 18 (-10%)
Mutual labels:  travis-ci
react-innertext
Returns the innerText of a React JSX object.
Stars: ✭ 37 (+85%)
Mutual labels:  travis-ci
projection-pursuit
An implementation of multivariate projection pursuit regression and univariate classification
Stars: ✭ 24 (+20%)
Mutual labels:  travis-ci
glare
gracefully download (latest) releases from GitHub
Stars: ✭ 64 (+220%)
Mutual labels:  github-api
getmein-web
Portal to get an invite to IIITV GitHub organization
Stars: ✭ 26 (+30%)
Mutual labels:  github-api
meet-the-fans
Query and Visualize the network graph of your GitHub repositories, followers, stargazers, and forks.
Stars: ✭ 22 (+10%)
Mutual labels:  github-api
DockerDjangoRest
A Docker setup for a Django REST API with Travis CI support
Stars: ✭ 46 (+130%)
Mutual labels:  travis-ci
unity-ci-test
Example Unity Project using TravisCI
Stars: ✭ 35 (+75%)
Mutual labels:  travis-ci
drupal9ci
One-line installers for implementing Continuous Integration in Drupal 9
Stars: ✭ 137 (+585%)
Mutual labels:  travis-ci
Gitzilla
A resume builder for your GitHub profile.
Stars: ✭ 60 (+200%)
Mutual labels:  github-api
quick-add-github-issue-browser-extension
Quickly add GitHub issues direct from a browser button
Stars: ✭ 14 (-30%)
Mutual labels:  github-api
karmahub
Compares the amount of issues and pull requests you created with the amount of comments and code reviews you did.
Stars: ✭ 17 (-15%)
Mutual labels:  github-api
GitHub-Stalker
track your GitHub statistics with Pandas
Stars: ✭ 31 (+55%)
Mutual labels:  github-api
GitHubSearch
GitHub iOS client with minimum third-party dependencies.
Stars: ✭ 34 (+70%)
Mutual labels:  github-api
twgitbot
A node.js bot that checks a github repo changes and tweets it to your Twitter account
Stars: ✭ 10 (-50%)
Mutual labels:  github-api

travis-activate.py

If you have a GitHub project with an ever-growing number of repos, and you want to automatically activate those repos for Travis-CI builds without having to manually click all the switches on their web site, then this script is for you.

Installation

  1. If you haven't already done this, you'll first need to pip install requests for a necessary library.

  2. You need to get a "token" for Travis-CI, which isn't the same thing as the "token" that Travis-CI displays when you log into it. (Why? No idea.)

  3. First, get a GitHub token with all the "Repo" privileges. You do this on the GitHub website (instructions).

  4. Install the httpie command-line tool.

  5. Run this one-liner, or something like it with your favorite alternative tool, telling Travis your GitHub API token and returning you a Travis-API token. (Replace "XXXXX" with your GitHub API token.)

http POST https://api.travis-ci.com/auth/github github_token=XXXXX
  1. Now you'll have a Travis API token. Edit the travis-activate.py script and paste it at the top where the code says travisToken = . (If you're doing this for multiple repos, you could presumably modify this script to take the token as an external argument. We're more interested in having a script that "just works" without any environmental dependencies.)

  2. Edit the githubProject string to reflect your project's name (e.g., for https://github.com/RiceComp215, the project name is RiceComp215). You should also write a suitable regular expression in repoRegex, specifying which repos you want to include. Non-matching repos will be ignored.

Usage

Now you can simply run python travis-activate.py and it will both activate any previously inactive repos (matching the regex) and will request a rebuild for them. Easy! Run it from a cron script? Sure! Note that this script requests that Travis synchronize itself with GitHub, but this request appears to be asynchronous, so a single run of this script might still miss some recently created repositories.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].