示例#1
0
def cli(ctx, paths, **kwds):
    """ Run tests of published shed artifacts.

    This command will start a Galaxy instance configured to target the
    specified shed, find published artifacts (tools and dependencies)
    corresponding to command-line arguments and ``.shed.yml`` file(s),
    install these artifacts, and run the tool tests for these commands.

    This command requires the target to be version 15.07 or newer.
    """
    galaxy_test.process_defaults(ctx, kwds)
    install_args_list = shed.install_arg_lists(ctx, paths, **kwds)
    port = get_free_port()
    kwds["port"] = port
    return_code = 1
    with galaxy_serve.shed_serve(ctx, install_args_list, **kwds) as config:
        config.kill()
        return_code = galaxy_test.run_in_config(
            ctx,
            config,
            installed=True,
            **kwds
        )
    if return_code:
        sys.exit(return_code)
示例#2
0
def cli(ctx, paths, **kwds):
    """ Serve a transient Galaxy with published repositories installed.

    This command will start a Galaxy instance configured to target the
    specified shed, find published artifacts (tools and dependencies)
    corresponding to command-line arguments and ``.shed.yml`` file(s),
    install these artifacts, and serve a Galaxy instances that can be
    logged into and explored interactively.
    """
    install_args_list = shed.install_arg_lists(ctx, paths, **kwds)
    with galaxy_serve.shed_serve(ctx, install_args_list, **kwds) as config:
        gx_url = "http://localhost:%d/" % config.port
        io.info("Galaxy running with tools installed at %s" % gx_url)
        time.sleep(1000000)
示例#3
0
 def test_shed_serve_daemon(self):
     port = network_util.get_free_port()
     fastqc_path = os.path.join(TEST_REPOS_DIR, "fastqc")
     ctx = self.test_context
     install_args_list = shed.install_arg_lists(
         ctx, [fastqc_path],
         shed_target="toolshed",
     )
     with galaxy_serve.shed_serve(
         ctx, install_args_list,
         port=port,
         skip_dependencies=True,
         install_galaxy=True,
     ) as config:
         assert network_util.wait_net_service(
             "localhost",
             config.port,
             timeout=.1,
         )
示例#4
0
 def test_shed_serve_daemon(self):
     port = network_util.get_free_port()
     fastqc_path = os.path.join(TEST_REPOS_DIR, "fastqc")
     ctx = self.test_context
     install_args_list = shed.install_arg_lists(
         ctx,
         [fastqc_path],
         shed_target="toolshed",
     )
     with galaxy_serve.shed_serve(
             ctx,
             install_args_list,
             port=port,
             skip_dependencies=True,
             install_galaxy=True,
     ) as config:
         assert network_util.wait_net_service(
             "localhost",
             config.port,
             timeout=.1,
         )
示例#5
0
def cli(ctx, paths, **kwds):
    """ Run tests of published shed artifacts.

    This command will start a Galaxy instance configured to target the
    specified shed, find published artifacts (tools and dependencies)
    corresponding to command-line arguments and ``.shed.yml`` file(s),
    install these artifacts, and run the tool tests for these commands.

    This command requires the target to be version 15.07 or newer.
    """
    install_args_list = shed.install_arg_lists(ctx, paths, **kwds)
    port = get_free_port()
    kwds["port"] = port
    return_code = 1
    with galaxy_serve.shed_serve(ctx, install_args_list, **kwds) as config:
        config.kill()
        return_code = galaxy_test.run_in_config(ctx,
                                                config,
                                                installed=True,
                                                **kwds)
    if return_code:
        sys.exit(return_code)