예제 #1
0
# with SshSession(host, username) as ssh:
#     ssh("echo", "hello")
#
#     Connect via ssh and issue commands. Command arguments similar to python().
#

from ci import (
        build_step, require_version, add_option, specify_optional_steps,
        build_condition, default_platform, get_dependency_args,
        get_vsvars_environment, fetch_dependencies, python, scp)

require_version(36)


# Command-line options. See documentation for Python's optparse module.
add_option("-t", "--target", help="Target platform.")
add_option("-a", "--artifacts", help="Build artifacts directory. Used to fetch dependencies.")
add_option("--debug", action="store_const", const="Debug", dest="debugmode", default="Debug", help="Build debug version.")
add_option("--release", action="store_const", const="Release", dest="debugmode", help="Build release version.")
add_option("--steps", default="default", help="Steps to run, comma separated. (all,default,fetch,configure,build,bundle,tests,publish)")
add_option("--publish-version", action="store", help="Specify version string.")
add_option("--fetch-only", action="store_const", const="fetch", dest="steps", help="Fetch dependencies only.")

@build_step()
def choose_optional_steps(context):
    specify_optional_steps(context.options.steps)

# Unconditional build step. Choose a platform and set the
# appropriate environment variable.
@build_step()
def choose_platform(context):
예제 #2
0
try:
    from ci import (
        require_version, add_option, add_bool_option, modify_optional_steps,
        specify_optional_steps, default_platform, get_dependency_args,
        build_step, build_condition, userlock, python, rsync, SshSession,
        fetch_dependencies, get_vsvars_environment, scp, fail, shell, cli)
except ImportError:
    print "You need to update ohDevTools."
    sys.exit(1)

require_version(11)


# Command-line options. See documentation for Python's optparse module.
add_option("-t", "--target", help="Target platform. One of Windows-x86, Windows-x64, Linux-x86, Linux-x64, Linux-ARM.")
add_option("-p", "--publish-version", help="Specify a version to publish.")
add_option("-a", "--artifacts", help="Build artifacts directory. Used to fetch dependencies.")
add_bool_option("-f", "--fetch-only", help="Fetch dependencies, skip building.")
add_bool_option("-F", "--no-fetch", help="Skip fetch dependencies.")
add_bool_option("--tests-only", help="Just run tests.")
add_bool_option("--no-tests", help="Don't run any tests.")
add_bool_option("--stresstest-only", help="Run stress tests.")
add_option("--steps", default="default", help="Steps to run, comma separated. (all,default,fetch,configure,build,tests,publish)")

ALL_DEPENDENCIES = [
    "ohnet",
    "ndesk-options",
    "yui-compressor",
    "sharpziplib",
    "sshnet",
예제 #3
0
#     Connect via ssh and issue commands. Command arguments similar to python().
#

import os
import shutil
from ci import (
    build_step, require_version, add_option, specify_optional_steps,
    build_condition, default_platform, get_dependency_args,
    get_vsvars_environment, fetch_dependencies, python, scp)
import platform

require_version(51)


# Command-line options. See documentation for Python's optparse module.
add_option("-t", "--target", help="Target platform.")
add_option("-a", "--artifacts", help="Build artifacts directory. Used to fetch dependencies.")
add_option("--debug", action="store_const", const="Debug", dest="debugmode", help="Build debug version.")
add_option("--release", action="store_const", const="Release", dest="debugmode", default="Release", help="Build release version.")
add_option("--steps", default="default", help="Steps to run, comma separated. (all,default,fetch,configure,clean,build,bundle,test,test_full,publish)")
add_option("--publish-version", action="store", help="Specify version string.")
add_option("--fetch-only", action="store_const", const="fetch", dest="steps", help="Fetch dependencies only.")


@build_step()
def choose_optional_steps(context):
    specify_optional_steps(context.options.steps)

# Unconditional build step. Choose a platform and set the
# appropriate environment variable.
@build_step()
예제 #4
0
        build_step, build_condition, userlock, python, rsync, SshSession,
        fetch_dependencies, get_vsvars_environment, scp, fail, shell, cli)
except ImportError:
    print "You need to update ohDevTools."
    sys.exit(1)

arch_vars = ''
output = ""
ret = ''
host = "image-builder.linn.co.uk"
oh_rsync_user = "******"
oh_rsync_host = "openhome.org"
username = "******"

# Command-line options. See documentation for Python's optparse module.
add_option("-a", "--artifacts", help="Build artifacts directory. Used to fetch dependencies.")
add_bool_option("--no-publish", help="Don't publish the packages.")

ALL_DEPENDENCIES = [
    "ohnet",
    "ndesk-options",
    "yui-compressor",
    "sharpziplib",
    "sshnet",
    "nuget"]

# Unconditional build step. Process options to enable or
# disable parts of the build.
@build_step()
def process_optional_steps(context):
    if context.options.no_publish: