In [ ]:
import os
import os.path
import subprocess
from functools import partial
from utils import apply_to_all_projects
working_dir = '/Users/jab08/_bump_condaci'
def remove_appveyor(repo_dir):
os.chdir(repo_dir)
if os.path.exists('appveyor.yml'):
print(subprocess.check_output(['git', 'rm', 'appveyor.yml']))
print(subprocess.check_output(['git', 'commit', '-am', 'remove appveyor.yml (move to Windows Jenkins)']))
print(subprocess.check_output(['git', 'push', 'origin', 'master']))
In [ ]:
apply_to_all_projects(working_dir, remove_appveyor)