Пример #1
0
def build_all():
  os.chdir('..')
  call(['make', 'directories'])
  call(['make', 'remove'])
  os.chdir("src")
  for game in game_list:
    change_game_code(game, copy_sample_clients=False, copy_tests=True, copy_obj=False)
    call(['make', 'remove'])
    call(['make', 'server'])
    call(['make', 'buildtests'])
    call(['make', 'test'])
    cache_state(game)
  
  change_game_code(game_list[0], copy_sample_clients=False, copy_tests=True, copy_obj=False)
Пример #2
0
def _build_game(game, stdout=sys.stdout):
    """
    Builds a game, in the vigridr directory.
    It doesn't restore the original files.

    Parameter:
        game - the game name as string
    """
    logger.info("The %s game has never been built. Building it..." % game)
    os.chdir(VIGRIDR)
    check_call(['make', 'directories'], stdout=stdout)
    check_call(['make', 'remove'], stdout=stdout)
    os.chdir(VIGRIDRSRC)
    change_game_code(game, copy_sample_clients=False, copy_tests=False, copy_obj=False, used_logger=_SilentLogger())
    check_call(['make', 'server'], stdout=stdout)
    cache_state(game)
Пример #3
0
def _build_game(game, stdout=sys.stdout):
    """
    Builds a game, in the vigridr directory.
    It doesn't restore the original files.

    Parameter:
        game - the game name as string
    """
    logger.info("The %s game has never been built. Building it..." % game)
    os.chdir(VIGRIDR)
    check_call(['make', 'directories'], stdout=stdout)
    check_call(['make', 'remove'], stdout=stdout)
    os.chdir(VIGRIDRSRC)
    change_game_code(game,
                     copy_sample_clients=False,
                     copy_tests=False,
                     copy_obj=False,
                     used_logger=_SilentLogger())
    check_call(['make', 'server'], stdout=stdout)
    cache_state(game)
Пример #4
0
def build_all():
    os.chdir('..')
    call(['make', 'directories'])
    call(['make', 'remove'])
    os.chdir("src")
    for game in game_list:
        change_game_code(game,
                         copy_sample_clients=False,
                         copy_tests=True,
                         copy_obj=False)
        call(['make', 'remove'])
        call(['make', 'server'])
        call(['make', 'buildtests'])
        call(['make', 'test'])
        cache_state(game)

    change_game_code(game_list[0],
                     copy_sample_clients=False,
                     copy_tests=True,
                     copy_obj=False)