def load(): """ Load archived installation Load an archived virtual environment and database which was dumped with :meth:`~dump`. """ venv_load() mysql_load()
def test_load(repo=None, quite=True): """ Load test environment """ if quite or confirm(cyan("Run step load_files?")): puts(cyan(">>> Loading test package..." % env)) local("sudo rsync --delete -rLptgoDv %(CFG_INVENIO_PREFIX)s/tests/var/ %(CFG_INVENIO_PREFIX)s/var/" % env) local("sudo rsync --delete -rLptgoDv %(CFG_INVENIO_PREFIX)s/tests/etc/ %(CFG_INVENIO_PREFIX)s/etc/" % env) if quite or confirm(cyan("Run step load_db?")): mysql_load(dumpfile=os.path.join(env.CFG_INVENIO_PREFIX, "tests/%s.sql.gz" % env.CFG_DATABASE_NAME)) if quite or confirm(cyan("Run step configure_make_install?")): repo_all_configure_make(repo, target_key='deploy_targets')
def test_load(repo=None, quite=True): """ Load test environment """ if quite or confirm(cyan("Run step load_files?")): puts(cyan(">>> Loading test package..." % env)) local( "sudo rsync --delete -rLptgoDv %(CFG_INVENIO_PREFIX)s/tests/var/ %(CFG_INVENIO_PREFIX)s/var/" % env) local( "sudo rsync --delete -rLptgoDv %(CFG_INVENIO_PREFIX)s/tests/etc/ %(CFG_INVENIO_PREFIX)s/etc/" % env) if quite or confirm(cyan("Run step load_db?")): mysql_load( dumpfile=os.path.join(env.CFG_INVENIO_PREFIX, "tests/%s.sql.gz" % env.CFG_DATABASE_NAME)) if quite or confirm(cyan("Run step configure_make_install?")): repo_all_configure_make(repo, target_key='deploy_targets')