示例#1
0
def install_dependencies():
    dependencies.install_module("golang")

    for key in DEPENDENCY_KEYS:
        name: str = key
        tag: str = ""
        overwrite: bool = True
        install_module(name, tag, overwrite)
示例#2
0
    def _post_install(self, tag: str):
        dependencies.install_module('golang')

        self.build_binary(tag, 'arwendebug')
        self.build_binary(tag, 'test')

        self.make_binary_symlink_in_parent_folder(tag, 'arwendebug',
                                                  'arwendebug')
        self.make_binary_symlink_in_parent_folder(tag, 'test', 'mandos-test')
示例#3
0
def sign_message_with_bls_key(message, seed):
    dependencies.install_module("mcl_signer")
    tool = path.join(dependencies.get_module_directory("mcl_signer"), "signer")

    try:
        signed_message = myprocess.run_process([tool, message, seed],
                                               dump_to_stdout=False)
        return signed_message
    except Exception:
        raise CannotSignMessageWithBLSKey()
示例#4
0
def run_tests(args):
    project = args.project
    directory = args.directory
    wildcard = args.wildcard

    logger.info("run_tests.project: %s", project)

    dependencies.install_module("arwentools")

    guards.is_directory(project)
    project = load_project(project)
    project.run_tests(directory, wildcard)
示例#5
0
 def _ensure_dependencies_installed(self):
     module_keys = self.get_dependencies()
     for module_key in module_keys:
         dependencies.install_module(module_key)
示例#6
0
def install_if_missing():
    dependencies.install_module("nodedebug", overwrite=False)
示例#7
0
def install(args: Any):
    name: str = args.name
    tag: str = args.tag
    overwrite: bool = args.overwrite
    dependencies.install_module(name, tag, overwrite)