2019-04-23 22:14:17 +01:00
|
|
|
import os, pytest
|
2019-04-22 18:22:43 +01:00
|
|
|
import utils
|
|
|
|
|
|
|
|
|
|
def test():
|
2019-04-22 23:13:34 +01:00
|
|
|
project_dir = os.path.dirname(__file__)
|
2019-04-22 23:25:14 +01:00
|
|
|
|
|
|
|
|
if utils.platform != 'linux':
|
2019-04-22 18:22:43 +01:00
|
|
|
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={
|
2019-04-22 23:23:49 +01:00
|
|
|
'CIBW_MANYLINUX1_X86_64_IMAGE': 'dockcross/manylinux-x64',
|
|
|
|
|
'CIBW_MANYLINUX1_I686_IMAGE': 'dockcross/manylinux-x86',
|
|
|
|
|
})
|
2019-04-22 18:22:43 +01:00
|
|
|
|
2019-04-23 22:14:17 +01:00
|
|
|
# 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)
|