require_version(14)

#todo: add test projects in a platform specific manner
solutions = [
    {
     "sln":"src/ohPlaylistManager/ohPlaylistManager.csproj",
     "mdtool":False
    }
]

# 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_option("--steps", default="default", help="Steps to run, comma separated. (all,default,fetch,configure,clean,build,tests,publish)")
add_option('--release', action="store_const", const="release", dest="debugmode", default="release", help="")
add_option('--debug', action="store_const", const="debug", dest="debugmode", default="release", help="")

@build_step()
def choose_optional_steps(context):
    specify_optional_steps(context.options.steps)
    if context.options.publish_version or context.env.get("PUBLISH_RELEASE","false").lower()=="true":
        modify_optional_steps("+publish")
    if context.options.fetch_only:
        specify_optional_steps("fetch")

# Unconditional build step. Choose a platform and set the
# appropriate environment variable.
Beispiel #2
0
        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",
    "nuget"]

@build_step()
Beispiel #3
0
        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:
        select_optional_steps("-publish")