Пример #1
0
#!/usr/bin/env python
# Run the Mitogen tests.

import os

import ci_lib

os.environ.update({
    'MITOGEN_TEST_DISTRO': ci_lib.DISTRO,
    'MITOGEN_LOG_LEVEL': 'debug',
    'SKIP_ANSIBLE': '1',
})

if not ci_lib.have_docker():
    os.environ['SKIP_DOCKER_TESTS'] = '1'

interesting = ci_lib.get_interesting_procs()
ci_lib.run('./run_tests -v')
ci_lib.check_stray_processes(interesting)
Пример #2
0
#!/usr/bin/env python

import ci_lib

batches = [[
    'pip install "pycparser<2.19" "idna<2.7"',
    'pip install -r tests/requirements.txt',
]]

if ci_lib.have_docker():
    batches.append([
        'docker pull %s' % (ci_lib.image_for_distro(ci_lib.DISTRO), ),
    ])

ci_lib.run_batches(batches)