19 lines
601 B
Python
19 lines
601 B
Python
import os, pytest
|
|
import utils
|
|
|
|
def test():
|
|
project_dir = os.path.dirname(__file__)
|
|
|
|
if utils.platform != 'linux':
|
|
pytest.skip('the docker test is only relevant to the linux build')
|
|
|
|
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)
|