Example #1
0
def setup_app(command, conf, vars):
    """Place any commands to setup turbotequila here"""
    print "load environment"
    load_environment(conf.global_conf, conf.local_conf)
    print "setup schema"
    setup_schema(command, conf, vars)
    print "bootstrap"
    bootstrap.bootstrap(command, conf, vars)
Example #2
0
def setup_app(command, conf, vars):
    """Place any commands to setup biorepo here"""
    print 'load environment'
    load_environment(conf.global_conf, conf.local_conf)
    print 'setup schema'
    setup_schema(command, conf, vars)
    print 'bootstrap'
    bootstrap.bootstrap(command, conf, vars)
Example #3
0
def setup_app(command, conf, vars):
    """Place any commands to setup SAUCE here"""
    load_environment(conf.global_conf, conf.local_conf)

    setup_schema(command, conf, vars)

    loader = YamlLoader(model)

    for filename in sorted(os.listdir(os.path.dirname(__file__) + '/data')):
        if filename.endswith('.yaml'):
            name = filename.lstrip('01234567890').replace('.yaml', '')
            log.info('Inserting %s data...', name)
            loader.loadf(model.DBSession, '%s/data/%s' % (os.path.dirname(__file__), filename))
    transaction.commit()

    run_tests = asbool(conf.get('websetup.run_tests', True))

    if run_tests:  # pragma: no cover
        log.info('Running test cases for half the submissions...')
        q = model.DBSession.query(model.Submission)
        for submission in sample(q.all(), q.count() / 2):
            submission.run_tests()
        transaction.commit()
Example #4
0
def setup_app(command, conf, vars):
    """Place any commands to setup SAUCE here"""
    load_environment(conf.global_conf, conf.local_conf)

    setup_schema(command, conf, vars)

    loader = YamlLoader(model)

    for filename in sorted(os.listdir(os.path.dirname(__file__) + '/data')):
        if filename.endswith('.yaml'):
            name = filename.lstrip('01234567890').replace('.yaml', '')
            log.info('Inserting %s data...', name)
            loader.loadf(model.DBSession,
                         '%s/data/%s' % (os.path.dirname(__file__), filename))
    transaction.commit()

    run_tests = asbool(conf.get('websetup.run_tests', True))

    if run_tests:  # pragma: no cover
        log.info('Running test cases for half the submissions...')
        q = model.DBSession.query(model.Submission)
        for submission in sample(q.all(), q.count() / 2):
            submission.run_tests()
        transaction.commit()
Example #5
0
def setup_app(command, conf, vars):
    """Place any commands to setup ebetl here"""
    load_environment(conf.global_conf, conf.local_conf)
    setup_schema(command, conf, vars)
    bootstrap.bootstrap(command, conf, vars)
Example #6
0
def setup_app(command, conf, vars):
    """Place any commands to setup fedoratagger here"""
    load_environment(conf.global_conf, conf.local_conf)
    setup_schema(command, conf, vars)
    bootstrap.bootstrap(command, conf, vars)
Example #7
0
def setup_app(command, conf, vars):
    """Place any commands to setup rnms here"""
    load_environment(conf.global_conf, conf.local_conf)
    setup_schema(command, conf, vars)
    tsdb_setup()
    bootstrap.bootstrap(command, conf, vars)
Example #8
0
def setup_app(command, conf, vars):
    """Place any commands to setup tg2raptorized here"""
    load_environment(conf.global_conf, conf.local_conf)
    setup_schema(command, conf, vars)
    bootstrap.bootstrap(command, conf, vars)
def setup_app(command, conf, vars):
    """Place any commands to setup turbogears2_sprox_tutorial here"""
    load_environment(conf.global_conf, conf.local_conf)
    setup_schema(command, conf, vars)
    bootstrap.bootstrap(command, conf, vars)
Example #10
0
def setup_app(command, conf, vars):
    """Place any commands to setup whatz_nearme here"""
    load_environment(conf.global_conf, conf.local_conf)
    setup_schema(command, conf, vars)
    bootstrap.bootstrap(command, conf, vars)