コード例 #1
0
def test_check_fn():
    tags = ['a_tag']
    package = 'test-underway'
    hostname = 'testhost'
    arch = 'fooarch'

    x = pbc.check(package, rpc_url, tags=tags, hostname=hostname, arch=arch)
    assert not x, x
コード例 #2
0
ファイル: test_xmlrpc_api.py プロジェクト: ctb/pony-build
def test_check_fn():
    tags = ['a_tag']
    package = 'test-underway'
    hostname = 'testhost'
    arch = 'fooarch'

    x = pbc.check(package, rpc_url, tags=tags, hostname=hostname, arch=arch)
    assert not x, x
コード例 #3
0
def do_autobuild(commands, name):
    server_url = options.server_url or default_server_url
    if not options.force_build:
        if not check(name, server_url, tags=tags):
            print 'check build says no need to build; bye'
            sys.exit(0)

    context = TempDirectoryContext(options.cleanup_temp)
    results = do(name, commands, context=context)
    client_info, reslist = results

    if options.report:
        print 'result: %s; sending' % (client_info['success'],)
        send(server_url, results, tags=tags)
    else:
        print 'build result:'
        import pprint
        pprint.pprint(client_info)
        pprint.pprint(reslist)
        print '(NOT SENDING BUILD RESULT TO SERVER)'
コード例 #4
0
ファイル: build-mechanize.py プロジェクト: sjl421/pony-build
options, args = parse_cmdline()
if args:
    print 'ignoring command line args: ', args

repo_url = 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.tar.gz'

python_exe = 'python'
if args:
    python_exe = args[0]

name = 'mechanize'
tags = ['mechanize']
server_url = options.server_url

if not options.force_build:
    if not check(name, server_url, tags=tags):
        print 'check build says no need to build; bye'
        sys.exit(0)

commands = [
    SvnCheckout('mechanize', repo_url, name='checkout'),
    BuildCommand([python_exe, 'setup.py', 'test'])
]

context = TempDirectoryContext()
results = do(name, commands, context=context)
client_info, reslist, files = results

if options.report:
    print 'result: %s; sending' % (client_info['success'], )
    send(server_url, results, tags=tags)
コード例 #5
0
ファイル: build-mechanize.py プロジェクト: ctb/pony-build
options, args = parse_cmdline()
if args:
    print 'ignoring command line args: ', args

repo_url = 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.tar.gz'

python_exe = 'python'
if args:
    python_exe = args[0]

name = 'mechanize'
tags = ['mechanize']
server_url = options.server_url

if not options.force_build:
    if not check(name, server_url, tags=tags):
        print 'check build says no need to build; bye'
        sys.exit(0)

commands = [ SvnCheckout('mechanize', repo_url, name='checkout'),
             BuildCommand([python_exe, 'setup.py', 'test'])
             ]

context = TempDirectoryContext()
results = do(name, commands, context=context)
client_info, reslist, files = results

if options.report:
    print 'result: %s; sending' % (client_info['success'],)
    send(server_url, results, tags=tags)
else: