Files
cibuildwheel/test/06_docker_images/cibuildwheel_test.py
T

19 lines
601 B
Python
Raw Normal View History

import os, pytest
import utils
def test():
project_dir = os.path.dirname(__file__)
2019-04-22 23:25:14 +01:00
if utils.platform != 'linux':
pytest.skip('the docker test is only relevant to the linux build')
2019-04-23 22:23:54 +01:00
utils.cibuildwheel_run(project_dir, add_env={
'CIBW_MANYLINUX1_X86_64_IMAGE': 'dockcross/manylinux-x64',
'CIBW_MANYLINUX1_I686_IMAGE': 'dockcross/manylinux-x86',
})
# also check that we got the right wheels built
expected_wheels = utils.expected_wheels('spam', '0.1.0')
actual_wheels = os.listdir('wheelhouse')
assert set(actual_wheels) == set(expected_wheels)