示例#1
0
def _build_requirements():
    ##########################################################
    # 
    # 
    #       S O A P     S T U B S  ( O P T I O N A L )
    # 
    # 

    import weblab.comm.util as comm_util
    comm_util.deploy_stubs()

    ##########################################################
    #
    # 
    #       C L I E N T 
    # 
    # 

    CLIENT_LOCATION = os.path.abspath(os.path.join('..','..','client'))
    WAR_LOCATION = os.path.join(CLIENT_LOCATION,'war')
    from weblab.admin.client_deploy import compile_client
    compile_client(WAR_LOCATION, CLIENT_LOCATION)

    # In any case, the client was compiled in the past or just now. Let's copy it here.
    print "Copying...",
    shutil.rmtree(os.path.join('weblabdeusto_data', 'war'), True)
    shutil.copytree(WAR_LOCATION, os.path.join('weblabdeusto_data', 'war'))
    shutil.rmtree(os.path.join('weblabdeusto_data', 'war', 'WEB-INF'), True)
    print "[done]"
示例#2
0
        os.system("python setup.py install")

    if options.deploy_stubs:
        import weblab.comm.util as comm_util
        comm_util.deploy_stubs()

    if options.deploy_testdb:
        deploy_testdb(options)
        if not options.tests and not options.flakes and not options.compile_client:
            sys.exit(0)

    if options.compile_client:
        CLIENT_LOCATION = os.path.abspath(os.path.join('..','..','client'))
        WAR_LOCATION = os.path.join(CLIENT_LOCATION,'war')
        from weblab.admin.client_deploy import compile_client
        compile_client(WAR_LOCATION, CLIENT_LOCATION)
        if not options.tests and not options.flakes:
            sys.exit(0)

    if options.flakes:
        flakes_return_code = check_flakes()
        if not options.tests:
            sys.exit(flakes_return_code)

    if options.debug:
        logging.basicConfig(level=logging.DEBUG)
    else:
        logging.basicConfig(level=logging.CRITICAL + 1)

    if len(os.environ.get('http_proxy','')) > 0 and not options.dont_disable_proxies:
        print >> sys.stderr, "Some tests fail when a proxy is present."
示例#3
0
#

import weblab.comm.util as comm_util
comm_util.deploy_stubs()

##########################################################
#
#
#       C L I E N T
#
#

CLIENT_LOCATION = os.path.abspath(os.path.join('..', '..', 'client'))
WAR_LOCATION = os.path.join(CLIENT_LOCATION, 'war')
from weblab.admin.client_deploy import compile_client
compile_client(WAR_LOCATION, CLIENT_LOCATION)

# In any case, the client was compiled in the past or just now. Let's copy it here.
print "Copying...",
shutil.rmtree(os.path.join('weblabdeusto_data', 'war'), True)
shutil.copytree(WAR_LOCATION, os.path.join('weblabdeusto_data', 'war'))
shutil.rmtree(os.path.join('weblabdeusto_data', 'war', 'WEB-INF'), True)
print "[done]"

##########################################################
#
#
#       P A C K A G E S    A N D     F I L E S
#
#