コード例 #1
0
def main():
    logging.basicConfig(level=logging.INFO)

    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {
        'PHP': ['/etc/php5/', '/etc/terminfo/', '/etc/protocols$'],
        'SWIFT': [os.path.abspath(os.path.join(os.path.dirname(__file__), 'swift'))],
        'RUBY2': ['/home/travis/.gem/'],
    }

    print('Available JVMs:')
    for jvm in get_dirs(JVM_DIR):
        print('  -', jvm)
    print()

    print('Available Pythons:')
    for python in get_dirs(PYENV_DIR):
        print('  -', python)
    print()

    print('Available Rubies:')
    for ruby in get_dirs(RVM_DIR):
        print('  -', ruby)
    print()

    print('Using extra allowed filesystems:')
    for lang, fs in judgeenv.env['extra_fs'].iteritems():
        print('%-6s: %s' % (lang, '|'.join(fs)))
    print()

    print('Testing executors...')

    ci_test(EXECUTORS, OVERRIDES)
コード例 #2
0
ファイル: .travis.test.py プロジェクト: DMOJ/judge
def main():
    logging.basicConfig(level=logging.INFO)

    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {
        'PHP': ['/etc/php5/', '/etc/terminfo/', '/etc/protocols$'],
        'SWIFT': [os.path.abspath(os.path.join(os.path.dirname(__file__), 'swift'))],
        'RUBY2': ['/home/travis/.gem/'],
    }

    print('Available JVMs:')
    for jvm in get_dirs(JVM_DIR):
        print('  -', jvm)
    print()

    print('Available Pythons:')
    for python in get_dirs(PYENV_DIR):
        print('  -', python)
    print()

    print('Available Rubies:')
    for ruby in get_dirs(RVM_DIR):
        print('  -', ruby)
    print()

    print('Using extra allowed filesystems:')
    for lang, fs in judgeenv.env['extra_fs'].iteritems():
        print('%-6s: %s' % (lang, '|'.join(fs)))
    print()

    print('Testing executors...')

    ci_test(EXECUTORS, OVERRIDES)