def runTests(): global verifydir global version buildString = "Build: " + version with cd(verifydir + "/dist/doc/tutorials/auction"): run("%s/kit_tools/auction.exp \"%s\" || exit 1" % (verifydir, buildString)) run("%s/kit_tools/auction.sh || exit 1" % (verifydir)) with cd(verifydir + "/dist/tools"): run("%s/kit_tools/generate.exp \"%s\" || exit 1" % (verifydir, buildString)) with cd(verifydir + "/dist/examples/voter"): run("%s/kit_tools/voter.exp \"%s\" || exit 1" % (verifydir, buildString)) with cd(verifydir + "/dist/examples/voltkv"): run("%s/kit_tools/voltkv.exp \"%s\" || exit 1" % (verifydir, buildString)) # get ssh config volt5f = getSSHInfoForHost("volt5f") voltmini = getSSHInfoForHost("voltmini") # test kits on 5f with settings(host_string=volt5f[1],disable_known_hosts=True,key_filename=volt5f[0]): setupVerifyDir("LINUX", "voltdb-%s" % version) runTests() setupVerifyDir("LINUX", "voltdb-ent-%s" % version) runTests() # test kits on mini with settings(host_string=voltmini[1],disable_known_hosts=True,key_filename=voltmini[0]): setupVerifyDir("MAC", "voltdb-%s" % version) runTests() setupVerifyDir("MAC", "voltdb-ent-%s" % version) runTests()
try: build_args = os.environ['VOLTDB_BUILD_ARGS'] except: build_args="" print "Building with pro: %s and voltdb: %s" % (proTreeish, voltdbTreeish) build_errors=False versionCentos = "unknown" versionMac = "unknown" releaseDir = "unknown" # get ssh config [key_filename, hostname] CentosSSHInfo = getSSHInfoForHost("volt15a") MacSSHInfo = getSSHInfoForHost("voltmini") UbuntuSSHInfo = getSSHInfoForHost("volt12d") # build kits on the mini if build_mac and build_community: try: with settings(user=username,host_string=MacSSHInfo[1],disable_known_hosts=True,key_filename=MacSSHInfo[0]): versionMac = checkoutCode(voltdbTreeish, proTreeish, rbmqExportTreeish, args.gitloc) buildCommunity() except Exception as e: print traceback.format_exc() print "Could not build MAC kit. Exception: " + str(e) + ", Type: " + str(type(e)) build_errors=True # build kits on 15f
try: build_args = os.environ['VOLTDB_BUILD_ARGS'] except: build_args = "" print "Building with pro: %s and voltdb: %s" % (proTreeish, voltdbTreeish) build_errors = False versionCentos = "unknown" versionMac = "unknown" releaseDir = "unknown" # get ssh config [key_filename, hostname] CentosSSHInfo = getSSHInfoForHost("volt15a") MacSSHInfo = getSSHInfoForHost("voltmini") UbuntuSSHInfo = getSSHInfoForHost("volt12d") # build kits on the mini if build_mac and build_community: try: with settings(user=username, host_string=MacSSHInfo[1], disable_known_hosts=True, key_filename=MacSSHInfo[0]): versionMac = checkoutCode(voltdbTreeish, proTreeish, rbmqExportTreeish, args.gitloc) buildCommunity() except Exception as e: print traceback.format_exc()
run("%s/kit_tools/auction.exp \"%s\" || exit 1" % (verifydir, buildString)) run("%s/kit_tools/auction.sh || exit 1" % (verifydir)) with cd(verifydir + "/dist/tools"): run("%s/kit_tools/generate.exp \"%s\" || exit 1" % (verifydir, buildString)) with cd(verifydir + "/dist/examples/voter"): run("%s/kit_tools/voter.exp \"%s\" || exit 1" % (verifydir, buildString)) with cd(verifydir + "/dist/examples/voltkv"): run("%s/kit_tools/voltkv.exp \"%s\" || exit 1" % (verifydir, buildString)) # get ssh config linuxbuild = getSSHInfoForHost("volt15a") macbuild = getSSHInfoForHost("voltmini") # test kits on 5f with settings(host_string=linuxbuild[1], disable_known_hosts=True, key_filename=linuxbuild[0]): setupVerifyDir("LINUX", "voltdb-%s" % version) runTests() setupVerifyDir("LINUX", "voltdb-ent-%s" % version) runTests() # test kits on mini with settings(host_string=macbuild[1], disable_known_hosts=True, key_filename=macbuild[0]):
def runTests(): global verifydir global version buildString = "Build: " + version with cd(verifydir + "/dist/doc/tutorials/auction"): run("%s/kit_tools/auction.exp \"%s\" || exit 1" % (verifydir, buildString)) run("%s/kit_tools/auction.sh || exit 1" % (verifydir)) with cd(verifydir + "/dist/tools"): run("%s/kit_tools/generate.exp \"%s\" || exit 1" % (verifydir, buildString)) with cd(verifydir + "/dist/examples/voter"): run("%s/kit_tools/voter.exp \"%s\" || exit 1" % (verifydir, buildString)) with cd(verifydir + "/dist/examples/voltkv"): run("%s/kit_tools/voltkv.exp \"%s\" || exit 1" % (verifydir, buildString)) # get ssh config linuxbuild = getSSHInfoForHost("volt15a") macbuild = getSSHInfoForHost("voltmini") # test kits on 5f with settings(host_string=linuxbuild[1],disable_known_hosts=True,key_filename=linuxbuild[0]): setupVerifyDir("LINUX", "voltdb-%s" % version) runTests() setupVerifyDir("LINUX", "voltdb-ent-%s" % version) runTests() # test kits on mini with settings(host_string=macbuild[1],disable_known_hosts=True,key_filename=macbuild[0]): setupVerifyDir("MAC", "voltdb-%s" % version) runTests() setupVerifyDir("MAC", "voltdb-ent-%s" % version) runTests()
#!/usr/bin/env python from fabric.api import run, local, get, put, env, cd, settings, quiet from fabric_ssh_config import getSSHInfoForHost import os if not env.hosts: exit( "FATAL: Missing -H server. You must specifiy the host to upload the kits to" ) sshinfo = getSSHInfoForHost(env.hosts[0]) def str_option_to_bool(opt): if opt in ('True', 'true', '1', 1, 'on', True): return True elif opt in ('False', 'false', '0', 0, 'off', False): return False else: raise "invalid option setting" def upload_kits(version, upload_type="ent", remote_dir="/var/www/downloads.voltdb.com/technologies/server", kit_dir="/home/test/releases/released", dry_run='False'): """ Upload kits to the voltdb download site. Args: version - version number such as 7.1.2
try: build_args = os.environ['VOLTDB_BUILD_ARGS'] except: build_args = "" print "Building with pro: %s and voltdb: %s" % (proTreeish, voltdbTreeish) build_errors = False versionCentos = "unknown" versionMac = "unknown" releaseDir = "unknown" # get ssh config [key_filename, hostname] CentosSSHInfo = getSSHInfoForHost("buildkits_C7") MacSSHInfo = getSSHInfoForHost("voltmini") UbuntuSSHInfo = getSSHInfoForHost("volt12d") # build community kit on the mini so that .so can be picked up for unified kit if build_mac or build_community: try: with settings(user=username, host_string=MacSSHInfo[1], disable_known_hosts=True, key_filename=MacSSHInfo[0]): versionMac = checkoutCode(voltdbTreeish, proTreeish, rbmqExportTreeish, args.gitloc) buildCommunity() except Exception as e: print traceback.format_exc()
#!/usr/bin/env python from fabric.api import run, local, get, put, env, cd, settings, quiet from fabric_ssh_config import getSSHInfoForHost import os if not env.hosts: exit("FATAL: Missing -H server. You must specifiy the host to upload the kits to") sshinfo = getSSHInfoForHost(env.hosts[0]) def str_option_to_bool(opt): if opt in ('True', 'true', '1', 1, 'on', True): return True elif opt in ('False', 'false', '0', 0, 'off', False): return False else: raise "invalid option setting" def upload_kits(version, upload_type="ent", remote_dir="/var/www/downloads.voltdb.com/technologies/server", kit_dir="/home/test/releases/released", dry_run='False'): """ Upload kits to the voltdb download site. Args: