(ctx, fix)
Validate CI infrastructure configuration.
Validate CI infrastructure configuration.
Validate CI infrastructure configuration .
def ci(ctx, fix):
    """Validate CI infrastructure configuration."""
    repo_choice = ctx.obj['repo_choice']
    if repo_choice not in REPOS:
        abort('Unknown repository `{}`'.format(repo_choice))

    repo_data = REPOS[repo_choice]
    testable_checks = get_testable_checks()
    cached_display_names = {}

    echo_info("Validating CI Configuration...")
    validate_master_jobs(fix, repo_data, testable_checks, cached_display_names)
    echo_success("Success", nl=True)

    echo_info("Validating Code Coverage Configuration...")
    validate_coverage_flags(fix, repo_data, testable_checks, cached_display_names)
    echo_success("Success", nl=True)
def ci ( ctx , fix ) : repo_choice = ctx . obj [ 'repo_choice' ] if repo_choice not in REPOS : abort ( 'Unknown repository `{}`' . format ( repo_choice ) ) repo_data = REPOS [ repo_choice ] testable_checks = get_testable_checks ( ) cached_display_names = { } echo_info ( "Validating CI Configuration..." ) validate_master_jobs ( fix , repo_data , testable_checks , cached_display_names ) echo_success ( "Success" , nl = True ) echo_info ( "Validating Code Coverage Configuration..." ) validate_coverage_flags ( fix , repo_data , testable_checks , cached_display_names ) echo_success ( "Success" , nl = True )