# btc_rpc_on["*:rpc"] = "True" # # bch_rpc_off_full = copy.deepcopy(bch_rpc_off) # bch_rpc_on_full = copy.deepcopy(bch_rpc_on) # # bch_rpc_off_full["*:db"] = "full" # bch_rpc_on_full["*:db"] = "full" # # btc_rpc_off_full = copy.deepcopy(btc_rpc_off) # btc_rpc_on_full = copy.deepcopy(btc_rpc_on) # # btc_rpc_off_full["*:db"] = "full" # btc_rpc_on_full["*:db"] = "full" # handle_microarchs("*:march_id", march_ids, filtered_builds, settings, bch_rpc_off_full, env_vars, build_requires) # handle_microarchs("*:march_id", march_ids, filtered_builds, settings, bch_rpc_on_full, env_vars, build_requires) # handle_microarchs("*:march_id", march_ids, filtered_builds, settings, bch_rpc_on, env_vars, build_requires) handle_microarchs("*:march_id", march_ids, filtered_builds, settings, bch_rpc_off, env_vars, build_requires) # handle_microarchs("*:march_id", march_ids, filtered_builds, settings, btc_rpc_off_full, env_vars, build_requires) # handle_microarchs("*:march_id", march_ids, filtered_builds, settings, btc_rpc_on_full, env_vars, build_requires) # handle_microarchs("*:march_id", march_ids, filtered_builds, settings, btc_rpc_on, env_vars, build_requires) # handle_microarchs("*:march_id", march_ids, filtered_builds, settings, btc_rpc_off, env_vars, build_requires) # ci_currency = os.getenv('KTH_CI_CURRENCY', None) # if ci_currency is not None: # options["*:currency"] = ci_currency # rpc_off = copy.deepcopy(options) # rpc_on = copy.deepcopy(options) # rpc_off["*:rpc"] = "False" # rpc_on["*:rpc"] = "True"
import platform from kthbuild import get_base_march_ids, get_builder, handle_microarchs, copy_env_vars, filter_valid_exts, filter_marchs_tests if __name__ == "__main__": full_build = os.getenv('KTH_FULL_BUILD', '0') == '1' builder, name = get_builder(os.path.dirname(os.path.abspath(__file__))) builder.add_common_builds(shared_option_name="%s:shared" % name) filtered_builds = [] for settings, options, env_vars, build_requires, reference in builder.items: if settings["build_type"] == "Release" \ and not options["%s:shared" % name]: copy_env_vars(env_vars) if os.getenv('KTH_RUN_TESTS', 'false') == 'true': options["%s:tests" % name] = "True" options["%s:examples" % name] = "False" march_ids = get_base_march_ids() handle_microarchs("%s:march_id" % name, march_ids, filtered_builds, settings, options, env_vars, build_requires) filter_marchs_tests( name, filtered_builds, ["%s:tests" % name, "%s:examples" % name]) builder.builds = filtered_builds builder.run()
# opts_bch_keoken["%s:keoken" % name] = True # opts_bch_keoken["%s:db" % name] = "full" opts_bch_no_keoken["%s:currency" % name] = "BCH" opts_bch_no_keoken["%s:keoken" % name] = False # opts_btc["%s:currency" % name] = "BTC" # opts_ltc["%s:currency" % name] = "LTC" # opts_btc_full = copy.deepcopy(opts_btc) # opts_btc_full["%s:db" % name] = "full" opts_bch_full = copy.deepcopy(opts_bch_no_keoken) opts_bch_full["%s:db" % name] = "full" handle_microarchs("%s:march_id" % name, march_ids, filtered_builds, settings, opts_bch_full, env_vars, build_requires) # handle_microarchs("%s:march_id" % name, march_ids, filtered_builds, settings, opts_btc_full, env_vars, build_requires) # handle_microarchs("%s:march_id" % name, march_ids, filtered_builds, settings, opts_bch_keoken, env_vars, build_requires) handle_microarchs("%s:march_id" % name, march_ids, filtered_builds, settings, opts_bch_no_keoken, env_vars, build_requires) # handle_microarchs("%s:march_id" % name, march_ids, filtered_builds, settings, opts_btc, env_vars, build_requires) # handle_microarchs("%s:march_id" % name, march_ids, filtered_builds, settings, opts_ltc, env_vars, build_requires) else: options["%s:currency" % name] = ci_currency # if ci_currency == "BCH": # # options_keoken = copy.deepcopy(options) # # options_keoken["%s:keoken" % name] = True # # options_keoken["%s:db" % name] = "full" # # opts_db_full = copy.deepcopy(options) # # opts_db_full["%s:db" % name] = "full"