def __remote_tests(self, host, user, type, release): # type will be either 'nightly' or 'commit' # release will be either '0' or '1' rem = remote() ret = rem.rsync(user, host, 'Build', '~/', excludes=['*.o', '*.a', 'Bundles']) if ret != 0: print ret sys.exit(10) ret = rem.rsync(user, host, 'AllTests.py', '~/') if ret != 0: print ret sys.exit(10) alltests_cmd = 'python AllTests.py -t --native' # Setup AllTests cmd line to run tests only. if type == 'nightly': alltests_cmd += ' -f' # Add 'full test' flag if in nightly-mode if release == '0': alltests_cmd += ' --debug' # Run binaries residing in Build/Debug instead of Build/Release ret = rem.rssh(user, host, alltests_cmd) if ret != 0: print ret sys.exit(10)
def do_release(self): rem = remote() nightly = self.options.nightly release = self.options.release platform_args = self.platform_args platform = self.options.platform version = self.options.version openhome_system = self.platform['system'] openhome_architecture = self.platform['arch'] release_targets = [] release_targets.append('release') release_targets.append('debug') for release in release_targets: openhome_configuration = release.title() build = [] if platform_args != []: build.extend(platform_args) build.append('&&') build.append('make') build.append('tt') build.append('uset4=yes') ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) build = [] if platform_args != []: build.extend(platform_args) build.append('&&') build.append('make') build.append('bundle') #build.append('targetplatform=%s' %(platform,)) #build.append('releasetype=%s' %(release,)) build.append('uset4=yes') build.append('openhome_system=' + openhome_system) build.append('openhome_architecture=' + openhome_architecture) build.append('openhome_configuration=' + openhome_configuration) build.extend(self.platform_make_args) print "doing release with bundle %s" %(build,) ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) native_bundle_name = os.path.join('Build/Bundles',"ohNet-%s-%s-%s.tar.gz" %(openhome_system, openhome_architecture, openhome_configuration)) managed_bundle_name = os.path.join('Build/Bundles','ohNet.net-AnyPlatform-%s.tar.gz' % (openhome_configuration,)) native_dest = os.path.join('Build/Bundles',"ohNet-%s-%s-%s-%s.tar.gz" %(version, openhome_system, openhome_architecture, openhome_configuration)) managed_dest = os.path.join('Build/Bundles',"ohNet.net-%s-AnyPlatform-%s.tar.gz" %(version, openhome_configuration)) for (name, dest) in [(native_bundle_name, native_dest), (managed_bundle_name, managed_dest)]: if os.path.exists(dest): os.remove(dest) os.rename(name, dest) rem.check_rsync('releases','www.openhome.org','Build/Bundles/','~/www/artifacts/ohNet/')
def do_release(self): rem = remote() nightly = self.options.nightly release = self.options.release platform_args = self.platform_args platform = self.options.platform version = self.options.version openhome_system = self.platform['system'] openhome_architecture = self.platform['arch'] release_targets = [] release_targets.append('release') release_targets.append('debug') # clean slate so as not to upload random junk inadvertently shutil.rmtree(os.path.join('Build', 'Bundles'), ignore_errors=True) for release in release_targets: openhome_configuration = release.title() build = [] if platform_args != []: build.extend(platform_args) build.append('&&') build.append('make') build.append('tt') build.append('uset4=yes') ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) build = [] if platform_args != []: build.extend(platform_args) build.append('&&') build.append('make') build.append('bundle') #build.append('targetplatform=%s' %(platform,)) #build.append('releasetype=%s' %(release,)) build.append('uset4=yes') build.append('openhome_system=' + openhome_system) build.append('openhome_architecture=' + openhome_architecture) build.append('openhome_configuration=' + openhome_configuration) build.extend(self.platform_make_args) print "doing release with bundle %s" %(build,) ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) native_bundle_name = os.path.join('Build/Bundles',"ohNet-%s-%s-%s.tar.gz" %(openhome_system, openhome_architecture, openhome_configuration)) native_dest = os.path.join('Build/Bundles',"ohNet-%s-%s-%s-%s.tar.gz" %(version, openhome_system, openhome_architecture, openhome_configuration)) if os.path.exists(native_dest): os.remove(native_dest) os.rename(native_bundle_name, native_dest) rem.check_rsync('releases','www.openhome.org','Build/Bundles/','~/www/artifacts/ohNet/')
def gen_docs(self): rem = remote() ret = subprocess.check_call('make docs', shell=True) if ret != 0: print ret sys.exit(10) print 'WARNING: publication of API docs disabled'
def gen_docs(self): rem = remote() ret = subprocess.check_call('make docs', shell=True) if ret != 0: print ret sys.exit(10) print 'WARNING: publication of API docs disabled'
def gen_docs(self): rem = remote() ret = subprocess.check_call("make docs", shell=True) if ret != 0: print ret sys.exit(10) ret = rem.rsync_gc("hudson-rsync", "openhome.org", "Build/Docs/", "~/build/nightly/docs") if ret != 0: print ret sys.exit(10)
def gen_docs(self): rem = remote() ret = subprocess.check_call('make docs', shell=True) if ret != 0: print ret sys.exit(10) ret = rem.rsync_gc('hudson-rsync','openhome.org','Build/Docs/','~/build/nightly/docs') if ret != 0: print ret sys.exit(10)
def gen_docs(self): rem = remote() ret = subprocess.check_call('make docs', shell=True) if ret != 0: print ret sys.exit(10) ret = rem.rsync_gc('hudson-rsync','openhome.org','Build/Docs/','~/build/nightly/docs') if ret != 0: print ret sys.exit(10)
def arm_tests(self,type): rem = remote() ret = rem.rsync('root','sheeva010.linn.co.uk','Build','~/') if ret != 0: print ret sys.exit(10) ret = rem.rsync('root','sheeva010.linn.co.uk','AllTests.py','~/') if ret != 0: print ret sys.exit(10) if type == 'nightly': ret = rem.rssh('root','sheeva010.linn.co.uk','python AllTests.py -f -t') if ret != 0: print ret sys.exit(10) else: ret = rem.rssh('root','sheeva010.linn.co.uk','python AllTests.py -t') if ret != 0: print ret sys.exit(10)
def do_release(self): rem = remote() nightly = self.options.nightly release = self.options.release platform_args = self.platform_args platform = self.options.platform version = self.options.version release_targets = [] release_targets.append('release') release_targets.append('debug') for release in release_targets: build = [] if platform_args != []: build.extend(platform_args) build.append('&&') build.append('make') build.append('bundle-dev') build.append('targetplatform=%s' %(platform,)) build.append('releasetype=%s' %(release,)) build.append('uset4=yes') print "doing release with bundle %s" %(build,) ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) bundle_name = os.path.join('Build/Bundles',"ohNet-%s-%s-dev.tar.gz" %(platform,release)) dest = os.path.join('Build/Bundles',"ohNet-%s-%s-dev-%s.tar.gz" %(version,platform,release)) if os.path.exists(dest): os.remove(dest) os.rename(bundle_name, dest) rem.check_rsync('releases','www.openhome.org','Build/Bundles/','~/www/artifacts/ohNet/')
def arm_tests(self,type,release): # type will be either 'nightly' or 'commit' # release will be either '0' or '1' rem = remote() ret = rem.rsync('root','sheeva010.linn.co.uk','Build','~/', excludes=['*.o', '*.a', 'Bundles']) if ret != 0: print ret sys.exit(10) ret = rem.rsync('root','sheeva010.linn.co.uk','AllTests.py','~/') if ret != 0: print ret sys.exit(10) alltests_cmd = 'python AllTests.py -t' # Setup AllTests cmd line to run tests only. if type == 'nightly': alltests_cmd += ' -f' # Add 'full test' flag if in nightly-mode if release == '0': alltests_cmd += ' --debug' # Run binaries residing in Build/Debug instead of Build/Release ret = rem.rssh('root','sheeva010.linn.co.uk', alltests_cmd) if ret != 0: print ret sys.exit(10)
def do_release(self): rem = remote() nightly = self.options.nightly release = self.options.release platform_args = self.platform_args platform = self.options.platform version = self.options.version openhome_system = self.platform['system'] openhome_architecture = self.platform['arch'] release_targets = [] release_targets.append('release') release_targets.append('debug') # clean slate so as not to upload random junk inadvertently shutil.rmtree(os.path.join('Build', 'Bundles'), ignore_errors=True) for release in release_targets: openhome_configuration = release.title() build = [] if platform_args != []: build.extend(platform_args) build.append('&&') build.append('make') build.append('tt') build.append('uset4=yes') ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) build = [] if platform_args != []: build.extend(platform_args) build.append('&&') build.append('make') build.append('bundle') #build.append('targetplatform=%s' %(platform,)) #build.append('releasetype=%s' %(release,)) build.append('uset4=yes') build.append('openhome_system=' + openhome_system) build.append('openhome_architecture=' + openhome_architecture) build.append('openhome_configuration=' + openhome_configuration) build.extend(self.platform_make_args) print "doing release with bundle %s" % (build, ) ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) native_bundle_name = os.path.join( 'Build/Bundles', "ohNet-%s-%s-%s.tar.gz" % (openhome_system, openhome_architecture, openhome_configuration)) native_dest = os.path.join( 'Build/Bundles', "ohNet-%s-%s-%s-%s.tar.gz" % (version, openhome_system, openhome_architecture, openhome_configuration)) if os.path.exists(native_dest): os.remove(native_dest) os.rename(native_bundle_name, native_dest) rem.check_rsync('releases', 'www.openhome.org', 'Build/Bundles/', '~/www/artifacts/ohNet/')
def do_release(self, platform): rem = remote() release_targets = [] release_targets.append("release")
def do_release(self): rem = remote() nightly = self.options.nightly release = self.options.release platform_args = self.platform_args platform = self.options.platform version = self.options.version openhome_system = self.platform["system"] openhome_architecture = self.platform["arch"] release_targets = [] release_targets.append("release") # clean slate so as not to upload random junk inadvertently shutil.rmtree(os.path.join("Build", "Bundles"), ignore_errors=True) openhome_configuration = "Release" build = [] if platform_args != []: build.extend(platform_args) build.append("&&") build.append("make") build.append("tt") build.append("uset4=yes") build.extend(self.make_args) ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) build = [] if platform_args != []: build.extend(platform_args) build.append("&&") build.append("make") build.append("bundle") build.append("uset4=yes") build.append("openhome_system=" + openhome_system) build.append("openhome_architecture=" + openhome_architecture) build.append("openhome_configuration=" + openhome_configuration) # build.extend(self.platform_make_args) print "doing release with bundle %s" % (build,) ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) native_bundle_name = os.path.join( "Build/Bundles", "ohNetGenerated-%s-%s-%s.tar.gz" % (openhome_system, openhome_architecture, openhome_configuration), ) native_dest = os.path.join( "Build/Bundles", "ohNetGenerated-%s-%s-%s-%s.tar.gz" % (version, openhome_system, openhome_architecture, openhome_configuration), ) if os.path.exists(native_dest): os.remove(native_dest) os.rename(native_bundle_name, native_dest) # Add a version to AnyPlatform on Windows-x86 only (arbitrarily chosen platform) if openhome_system == "Windows" and openhome_architecture == "x86": native_bundle_name = os.path.join("Build/Bundles", "ohNetGenerated-AnyPlatform-Release.tar.gz") native_dest = os.path.join("Build/Bundles", "ohNetGenerated-%s-AnyPlatform-Release.tar.gz" % (version)) if os.path.exists(native_dest): os.remove(native_dest) os.rename(native_bundle_name, native_dest) rem.check_rsync("releases", "www.openhome.org", "Build/Bundles/", "~/www/artifacts/ohNetGenerated/")
def do_release(self,platform): rem = remote() release_targets = [] release_targets.append('release') release_targets.append('debug')
def do_release(self): rem = remote() nightly = self.options.nightly release = self.options.release platform_args = self.platform_args platform = self.options.platform version = self.options.version openhome_system = self.platform['system'] openhome_architecture = self.platform['arch'] release_targets = [] release_targets.append('release') # clean slate so as not to upload random junk inadvertently shutil.rmtree(os.path.join('Build', 'Bundles'), ignore_errors=True) openhome_configuration = 'Release' build = [] if platform_args != []: build.extend(platform_args) build.append('&&') build.append('make') build.append('tt') build.append('uset4=yes') build.extend(self.make_args) ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) build = [] if platform_args != []: build.extend(platform_args) build.append('&&') build.append('make') build.append('bundle') build.append('uset4=yes') build.append('openhome_system=' + openhome_system) build.append('openhome_architecture=' + openhome_architecture) build.append('openhome_configuration=' + openhome_configuration) #build.extend(self.platform_make_args) print "doing release with bundle %s" % (build, ) ret = subprocess.check_call(build) if ret != 0: print ret sys.exit(10) native_bundle_name = os.path.join( 'Build/Bundles', "ohNetGenerated-%s-%s-%s.tar.gz" % (openhome_system, openhome_architecture, openhome_configuration)) native_dest = os.path.join( 'Build/Bundles', "ohNetGenerated-%s-%s-%s-%s.tar.gz" % (version, openhome_system, openhome_architecture, openhome_configuration)) if os.path.exists(native_dest): os.remove(native_dest) os.rename(native_bundle_name, native_dest) # Add a version to AnyPlatform on Windows-x86 only (arbitrarily chosen platform) if openhome_system == 'Windows' and openhome_architecture == 'x86': native_bundle_name = os.path.join( 'Build/Bundles', "ohNetGenerated-AnyPlatform-Release.tar.gz") native_dest = os.path.join( 'Build/Bundles', "ohNetGenerated-%s-AnyPlatform-Release.tar.gz" % (version)) if os.path.exists(native_dest): os.remove(native_dest) os.rename(native_bundle_name, native_dest) rem.check_rsync('releases', 'www.openhome.org', 'Build/Bundles/', '~/www/artifacts/ohNetGenerated/')
def do_release(self,platform): rem = remote() release_targets = [] release_targets.append('release') release_targets.append('debug')