def __call__(self, args): from conda_smithy import ci_register owner = args.user or args.organization repo = os.path.basename(os.path.abspath(args.feedstock_directory)) print("CI Summary for {}/{} (can take ~30s):".format(owner, repo)) if args.travis: # Assume that the user has enabled travis-ci.com service # user-wide or org-wide for all repos # ci_register.add_project_to_travis(owner, repo) ci_register.travis_token_update_conda_forge_config( args.feedstock_directory, owner, repo) time.sleep(1) ci_register.travis_configure(owner, repo) # Assume that the user has enabled travis-ci.com service # user-wide or org-wide for all repos # ci_register.travis_cleanup(owner, repo) else: print("Travis registration disabled.") if args.circle: ci_register.add_project_to_circle(owner, repo) ci_register.add_token_to_circle(owner, repo) else: print("Circle registration disabled.") if args.azure: if azure_ci_utils.default_config.token is None: print( "No azure token. Create a token at https://dev.azure.com/conda-forge/_usersSettings/tokens and\n" "put it in ~/.conda-smithy/azure.token") ci_register.add_project_to_azure(owner, repo) else: print("Azure registration disabled.") if args.appveyor: ci_register.add_project_to_appveyor(owner, repo) ci_register.appveyor_encrypt_binstar_token( args.feedstock_directory, owner, repo) ci_register.appveyor_configure(owner, repo) else: print("Appveyor registration disabled.") if args.drone: ci_register.add_project_to_drone(owner, repo) ci_register.add_token_to_drone(owner, repo) else: print("Drone registration disabled.") if args.webservice: ci_register.add_conda_forge_webservice_hooks(owner, repo) else: print("Heroku webservice registration disabled.") print( "\nCI services have been enabled. You may wish to regenerate the feedstock.\n" "Any changes will need commiting to the repo.")
def __call__(self, args): from conda_smithy import ci_register owner = args.user or args.organization repo = os.path.basename(os.path.abspath(args.feedstock_directory)) print("CI Summary for {}/{} (can take ~30s):".format(owner, repo)) if args.travis: ci_register.add_project_to_travis(owner, repo) ci_register.travis_token_update_conda_forge_config( args.feedstock_directory, owner, repo ) time.sleep(1) ci_register.travis_configure(owner, repo) ci_register.travis_cleanup(owner, repo) else: print("Travis registration disabled.") if args.circle: ci_register.add_project_to_circle(owner, repo) ci_register.add_token_to_circle(owner, repo) else: print("Circle registration disabled.") if args.azure: if azure_ci_utils.default_config.token is None: print( "No azure token. Create a token at https://dev.azure.com/conda-forge/_usersSettings/tokens and\n" "put it in ~/.conda-smithy/azure.token" ) ci_register.add_project_to_azure(owner, repo) else: print("Azure registration disabled.") if args.appveyor: ci_register.add_project_to_appveyor(owner, repo) ci_register.appveyor_encrypt_binstar_token( args.feedstock_directory, owner, repo ) ci_register.appveyor_configure(owner, repo) else: print("Appveyor registration disabled.") ci_register.add_conda_forge_webservice_hooks(owner, repo) print( "\nCI services have been enabled. You may wish to regenerate the feedstock.\n" "Any changes will need commiting to the repo." )
def __call__(self, args): from conda_smithy import ci_register owner = args.user or args.organization repo = os.path.basename(os.path.abspath(args.feedstock_directory)) print('CI Summary for {}/{} (can take ~30s):'.format(owner, repo)) ci_register.add_project_to_travis(owner, repo) ci_register.travis_token_update_conda_forge_config(args.feedstock_directory, owner, repo) time.sleep(1) ci_register.travis_configure(owner, repo) ci_register.travis_cleanup(owner, repo) ci_register.add_project_to_circle(owner, repo) ci_register.add_token_to_circle(owner, repo) ci_register.add_project_to_appveyor(owner, repo) ci_register.appveyor_encrypt_binstar_token(args.feedstock_directory, owner, repo) ci_register.appveyor_configure(owner, repo) ci_register.add_conda_forge_webservice_hooks(owner, repo) print("\nCI services have been enabled. You may wish to regenerate the feedstock.\n" "Any changes will need commiting to the repo.")