Esempio n. 1
0
def publish(context):
    targetpath    = "{OH_PUBLISHDIR}/{OH_PROJECT}/{OH_PROJECT}-{OH_VERSION}-{OH_PLATFORM}-{OH_DEBUG}.tar.gz".format(**context.env)
    sourcepath    = "{BUILDDIR}/{OH_PROJECT}.tar.gz".format(**context.env)
    scp(sourcepath,    targetpath)

    # only publish the .net binaries from one CI platform, Windows-x86
    if context.env['OH_PLATFORM'] == 'Windows-x86':
        targetpath    = "{OH_PUBLISHDIR}/{OH_PROJECT}/{OH_PROJECT_NET}-{OH_VERSION}-AnyPlatform-{OH_DEBUG}.tar.gz".format(**context.env)
        sourcepath    = "{BUILDDIR_NET}/{OH_PROJECT_NET}-AnyPlatform-{OH_DEBUG}.tar.gz".format(**context.env)
        scp(sourcepath,    targetpath)
Esempio n. 2
0
def publish(context):
    platform = context.env["OH_PLATFORM"]
    version = context.options.publish_version or context.env.get("RELEASE_VERSION", "UNKNOWN")
    publishdir = context.env["OHOS_PUBLISH"]
    builddir = context.env["BUILDDIR"]

    filename = "ohos-{version}-{platform}.tar.gz".format(platform=platform, version=version)
    sourcepath = os.path.join(builddir, "ohos.tar.gz")
    targetpath = publishdir + '/' + filename
    scp(sourcepath, targetpath)
Esempio n. 3
0
def publish(context):
    targetpath    = "{OH_PUBLISHDIR}/{OH_PROJECT}/{OH_PROJECT}-{OH_VERSION}-{OH_PLATFORM}-{OH_DEBUG}.tar.gz".format(**context.env)
    sourcepath    = "{BUILDDIR}/{OH_PROJECT}.tar.gz".format(**context.env)
    scp(sourcepath,    targetpath)
def publish(context):
    targetpath    = "{OH_PUBLISHDIR}/{OH_PROJECT}/{OH_PROJECT}-{OH_VERSION}-{OH_PLATFORM}-{OH_DEBUG}.tar.gz".format(**context.env)
    sourcepath    = "{BUILDDIR}/{OH_PROJECT}.tar.gz".format(**context.env)
    scp(sourcepath,    targetpath)