# # shell(...) # Invoke a shell subprocess. Arguments similar to python(). # # 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)
# # shell(...) # Invoke a shell subprocess. Arguments similar to python(). # # 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",
# # with SshSession(host, username) as ssh: # ssh("echo", "hello") # # 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)
# # shell(...) # Invoke a shell subprocess. Arguments similar to python(). # # 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, shell, cli) require_version(22) solutions = [ { "sln":"src/ohTopology.sln", "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("-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,build,tests,publish)")
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(6) # 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("-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,tests,publish)", ) add_option("--publish-version", action="store", help="Specify version string.")
import os import sys import shutil from glob import glob 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",
from ci import (OpenHomeBuilder, require_version) require_version(41) class Builder(OpenHomeBuilder): native_package_location = 'buildhudson/{packagename}' def setup(self): self.env.update( WAFLOCK='.lock-wafbuildhudson', ) self.configure_args = self.get_dependency_args(env={'debugmode':self.configuration}) self.configure_args += ["--dest-platform", self.platform] self.configure_args += ["--" + self.configuration.lower()] def configure(self): self.python("waf", "configure", *self.configure_args) def clean(self): self.python('waf', 'clean') def build(self): self.python('waf') def test(self): self.python("waf", "test") def publish(self): # Publish native packages regardless of platform self.publish_package( 'ohTopology.tar.gz',
import shutil import json import platform from glob import glob 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(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.")
from ci import (OpenHomeBuilder, require_version) require_version(34) class Builder(OpenHomeBuilder): def setup(self): self.env.update( WAFLOCK='.lock-wafbuild', ) self.configure_args = self.get_dependency_args(env={'debugmode':self.configuration}) self.configure_args += ["--" + self.configuration.lower()] def configure(self): self.python("waf", "configure", *self.configure_args) def clean(self): self.python('waf', 'clean') def build(self): from glob import glob import os path = ':'.join(map(lambda x: os.path.join(os.getcwd(), x), glob('dependencies/*/*'))) self.env.update( PATH='%s:%s' % (self.env['PATH'], path), ) self.python('waf') def test(self): #self.python("waf", "test")
from ci import (OpenHomeBuilder, require_version) require_version(41) class Builder(OpenHomeBuilder): native_package_location = 'buildhudson/{packagename}' def setup(self): self.env.update(WAFLOCK='.lock-wafbuildhudson', ) self.configure_args = self.get_dependency_args( env={'debugmode': self.configuration}) self.configure_args += ["--dest-platform", self.platform] self.configure_args += ["--" + self.configuration.lower()] def configure(self): self.python("waf", "configure", *self.configure_args) def clean(self): self.python('waf', 'clean') def build(self): self.python('waf') def test(self): self.python("waf", "test") def publish(self): # Publish native packages regardless of platform self.publish_package( 'ohTopology.tar.gz',
# Defines the build behaviour for continuous integration builds. import sys try: from ci import (OpenHomeBuilder, require_version) except ImportError: print "You need to update ohDevTools." sys.exit(1) require_version(22) class Builder(OpenHomeBuilder): test_location = 'build/bin/{configuration}/{assembly}.dll' def setup(self): self.set_nunit_location( 'dependencies/nuget/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe' ) if self.system != 'Windows': self.shell('mono --version') def clean(self): self.msbuild('src/ohLibSpotify.sln', target='Clean', platform=self.platform, configuration=self.configuration) def build(self): self.msbuild('src/ohLibSpotify.sln',
# Defines the build behaviour for continuous integration builds. import sys import os import shutil import glob try: from ci import (OpenHomeBuilder, require_version) except ImportError: print "You need to update ohDevTools." sys.exit(1) require_version(46) class Builder(OpenHomeBuilder): # Standard rules enforce warnings-as-errors and importing SharedSettings.targets, # disallow tabs in C# files and disallow .orig files in the source tree. source_check_rules = OpenHomeBuilder.standard_source_check_rules def setup(self): self.nuget_server = self.env.get('NUGET_SERVER', None) self.nuget_api_key = self.env.get('NUGET_API_KEY', None) self.set_nuget_sln('src/ohGit.sln') self.packagepath = os.path.join(os.getcwd(),'build', 'packages'); if not os.path.exists(self.packagepath): os.makedirs(self.packagepath) def clean(self):
import sys import subprocess import os import re import shutil import tarfile import glob try: from ci import (OpenHomeBuilder, require_version) except ImportError: print "You need to update ohDevTools." sys.exit(1) require_version(42) class Builder(OpenHomeBuilder): output_dir = "build/packages" build_dir = "build" def setup(self): self.nuget_server = self.env.get('NUGET_SERVER') self.nuget_api_key = self.env.get('NUGET_API_KEY') self.set_nuget_sln("taglib-sharp.sln") def clean(self): if os.path.isdir(self.build_dir): shutil.rmtree(self.build_dir)