Exemplo n.º 1
0
def deploy(environment=None, svnuser=None, svnpass=None):
    if environment == None:
        environment = tasklib._infer_environment()

    tasklib.create_ve()
    tasklib.link_local_settings(environment)
    tasklib.update_db()
    checkout_or_update_fixtures(svnuser, svnpass)
    load_fixtures()
Exemplo n.º 2
0
def deploy(environment=None, svnuser=None, svnpass=None):
    if environment == None:
        environment = tasklib._infer_environment()

    tasklib.create_ve()
    tasklib.link_local_settings(environment)
    tasklib.update_db()
    checkout_or_update_fixtures(svnuser, svnpass)
    load_fixtures()
Exemplo n.º 3
0
def deploy(environment=None):
    """Do all the required steps in order"""
    if environment == None:
        environment = tasklib._infer_environment()

    tasklib.create_private_settings()
    tasklib.link_local_settings(environment)
    tasklib.update_git_submodules()
    tasklib.create_ve()
    tasklib.update_db(use_migrations=True)
Exemplo n.º 4
0
def deploy(environment=None, svnuser=None, svnpass=None):
    if environment == None:
        environment = tasklib._infer_environment()

    tasklib.create_ve()
    tasklib.create_private_settings()
    tasklib.link_local_settings(environment)
    tasklib.update_db()

    load_admin_user(environment)
    load_django_site_data(environment)
Exemplo n.º 5
0
def deploy(environment=None, svnuser=None, svnpass=None):
    if environment == None:
        environment = tasklib._infer_environment()

    tasklib.create_ve()
    tasklib.create_private_settings()
    tasklib.link_local_settings(environment)
    tasklib.update_db()

    load_admin_user(environment)
    load_django_site_data(environment)
Exemplo n.º 6
0
def run_jenkins(apps_to_test=None, local_settings='jenkins'):
    """ make sure the local settings is correct and the database exists """
    if apps_to_test is None:
        apps_to_test = django_apps
    tasklib.env['verbose'] = True
    tasklib.update_ve()
    _install_django_jenkins()
    tasklib.create_private_settings()
    tasklib.link_local_settings(local_settings)
    tasklib.clean_db()
    tasklib.update_db()
    _manage_py_jenkins(apps_to_test)
Exemplo n.º 7
0
def deploy(environment=None):
    """Do all the required steps in order"""
    if environment is None:
        environment = tasklib._infer_environment()
        if tasklib.env['verbose']:
            print "Inferred environment as %s" % environment

    tasklib.create_private_settings()
    tasklib.link_local_settings(environment)
    tasklib.create_ve()
    tasklib.update_db()
    update_docs()
Exemplo n.º 8
0
def run_jenkins(svnuser, svnpass):
    """ make sure the local settings is correct and the database exists """
    tasklib.update_ve()
    tasklib._install_django_jenkins()
    tasklib.link_local_settings('jenkins')
    tasklib.clean_db()
    tasklib.update_db()
    checkout_or_update_fixtures(svnuser, svnpass)
    load_fixtures()
    # for jenkins, link to sarpaminfohub directory so that we can read the nice
    # reports
    if not os.path.exists(os.path.join(tasklib.env['project_dir'], 'infohub')):
        subprocess.call(['ln', '-s', 'django/sarpaminfohub/infohub'], cwd=tasklib.env['project_dir'])
    if not os.path.exists(os.path.join(tasklib.env['project_dir'], 'contactlist')):
        subprocess.call(['ln', '-s', 'django/sarpaminfohub/contactlist'], cwd=tasklib.env['project_dir'])
    tasklib._manage_py_jenkins()
Exemplo n.º 9
0
def run_jenkins(svnuser, svnpass):
    """ make sure the local settings is correct and the database exists """
    tasklib.update_ve()
    tasklib._install_django_jenkins()
    tasklib.link_local_settings('jenkins')
    tasklib.clean_db()
    tasklib.update_db()
    checkout_or_update_fixtures(svnuser, svnpass)
    load_fixtures()
    # for jenkins, link to sarpaminfohub directory so that we can read the nice
    # reports
    if not os.path.exists(os.path.join(tasklib.env['project_dir'], 'infohub')):
        subprocess.call(['ln', '-s', 'django/sarpaminfohub/infohub'],
                        cwd=tasklib.env['project_dir'])
    if not os.path.exists(
            os.path.join(tasklib.env['project_dir'], 'contactlist')):
        subprocess.call(['ln', '-s', 'django/sarpaminfohub/contactlist'],
                        cwd=tasklib.env['project_dir'])
    tasklib._manage_py_jenkins()