Example #1
0
def run_tool_version_manager(context):
    ge_tooling.run_tool(
        context,
        tool="version-manager",
        command="version-manager",
        mount=sources_folder,
        pwd=current_folder,
    )
Example #2
0
def patch_versions(context: adhesive.Token[Data]) -> None:
    ge_tooling.run_tool(
        context,
        tool="version-manager",
        command="vm",
        mount=sources_folder,
        pwd=current_folder,
    )
Example #3
0
def is_release_version(context):
    current_version = ge_tooling.run_tool(
        context,
        tool="version-manager",
        command="version-manager --tag",
        mount=sources_folder,
        pwd=current_folder,
        capture_stdout=True,
    ).strip()

    context.data.current_version = current_version

    if ge_git.get_tag_version(current_version):
        context.data.release_version = True
    else:
        context.data.release_version = False
Example #4
0
def gbs_run_tool(context) -> None:
    ge_tooling.run_tool(context, tool="mypy", command="mypy --exclude features/ .")
Example #5
0
def run_tool(context) -> str:
    ge_tooling.run_tool(context, tool="behave", command="behave")