Ejemplo n.º 1
0
def build():
    api_url = "%s/packages/conan" % os.environ.get(
        "CI_API_V4_URL", "https://git.grammatech.com/api/v4")
    try:
        run_conan(["remote", "add", remote, api_url])
    except subprocess.CalledProcessError:
        pass  # ignore, maybe already added?

    props = conanfile.Properties()
    authenticate()
    run_conan(["create", ".", props.conan_ref])
    run_conan(["upload", props.conan_recipe, "--all", "--remote", remote])
Ejemplo n.º 2
0
def build(argv):
    props = conanfile.Properties()
    run_conan(["create", "--keep-source", ".", props.conan_ref] + argv)
    archived_channels = props.archived_channels
    if props.conan_channel in archived_channels:
        run_conan(
            ["upload", props.conan_recipe, "--all", "--remote", "gitlab"])
    else:
        print("Conan channel not archived. Update archived_branches in "
              "conanfile.py to get archival.")
        print("archived channels: ")
        print(*archived_channels, sep=", ")
        print("channel built: " + props.conan_channel)
Ejemplo n.º 3
0
def build():
    api_url = "%s/packages/conan" % os.environ.get(
        "CI_API_V4_URL", "https://git.grammatech.com/api/v4")
    try:
        run_conan(["remote", "add", remote, api_url])
    except subprocess.CalledProcessError:
        pass  # ignore, maybe already added?

    props = conanfile.Properties()
    authenticate()
    run_conan(["create"] + sys.argv[1:] + [".", props.conan_ref])
    archived_channels = props.archived_channels
    if props.conan_channel in archived_channels:
        run_conan(["upload", props.conan_recipe, "--all", "--remote", remote])
    else:
        print("Conan channel not archived. Update archived_branches"
              " in conanfile.py to get archival.")
        print("archived channels: ")
        print(*archived_channels, sep=", ")
        print("channel built: " + props.conan_channel)