For this to work you'll need to have the travis CLI installed and have already run login (cd to a menpo dir before running login for auto magic)
> sudo gem install travis
To bump on Jenkins, visit here: https://jenkins.menpo.org/credentials/
In [ ]:
import os
import subprocess
from utils import apply_to_all_projects
working_dir = '~/_bump_anaconda_key'
new_key = 'not a chance'
def bump_repo(repo_dir, restart_travis=False):
os.chdir(repo_dir)
print(subprocess.check_output(['travis', 'env', 'set', 'BINSTAR_KEY', new_key]))
if restart_travis:
print(subprocess.check_output(['travis', 'restart']))
In [ ]:
apply_to_all_projects(working_dir, bump_repo)