Commit 86862e08 authored by mattip's avatar mattip
Browse files

allow choosing the test docker image

parent b943f33a
...@@ -26,6 +26,7 @@ matrix: ...@@ -26,6 +26,7 @@ matrix:
env: env:
- TEST_BUILDS=1 - TEST_BUILDS=1
- MB_ML_VER=2010 - MB_ML_VER=2010
- MB_TEST_VER=multibuild/xenial
# 32-bit builds # 32-bit builds
- os: linux - os: linux
dist: xenial dist: xenial
...@@ -38,6 +39,7 @@ matrix: ...@@ -38,6 +39,7 @@ matrix:
- TEST_BUILDS=1 - TEST_BUILDS=1
- PLAT=i686 - PLAT=i686
- MB_ML_VER=2010 - MB_ML_VER=2010
- MB_TEST_VER=multibuild/bionic
# Builds with caching # Builds with caching
- os: linux - os: linux
dist: xenial dist: xenial
......
...@@ -24,7 +24,7 @@ The AppVeyor setup is designed to build *and test*: ...@@ -24,7 +24,7 @@ The AppVeyor setup is designed to build *and test*:
* 64-bit Windows ``win_amd64`` wheels * 64-bit Windows ``win_amd64`` wheels
* 32-bit Windows ``win32`` wheels * 32-bit Windows ``win32`` wheels
You can currently build and test against Pythons 2.7, 3.5, 3.6, 3.7. You can currently build and test against Pythons 2.7, 3.5, 3.6, 3.7, 3.8
***************** *****************
How does it work? How does it work?
...@@ -78,7 +78,7 @@ Manylinux ...@@ -78,7 +78,7 @@ Manylinux
========= =========
The build phase is in a Manylinux Docker container, but the test phase is in The build phase is in a Manylinux Docker container, but the test phase is in
a clean Ubuntu 14.04 container. a clean container.
Build phase Build phase
...@@ -125,11 +125,21 @@ real ``build_wheel`` function, which now comes (by default) from ...@@ -125,11 +125,21 @@ real ``build_wheel`` function, which now comes (by default) from
Test phase Test phase
---------- ----------
Testing is in an Ubuntu 14.04 Docker container - see Specify the version to test with the ``MB_TEST_VER`` environment variable. The
``multibuild/docker_test_wrap.sh``. ``multibuild/travis_linux_steps.sh`` default version is ``matthewbrett/trusty:``. A suffix will be added by the
defines the ``install_run`` function, which starts up the testing Docker ``PLAT`` choice: ``i686`` will add ``32``, all others will add ``64``.
container with a wrapper script ``multibuild/docker_test_wrap.sh``. The Versions that are currently valid are:
wrapper script sources the following bash scripts::
* ``matthewbrett/trusty:`` (32 or 64)
* ``multibuild/bionic`` (32 only)
* ``multibuild/xenial`` (64 only)
See ``multibuild/docker_test_wrap.sh``.
``multibuild/travis_linux_steps.sh`` defines the ``install_run`` function,
which starts up the testing Docker container with the wrapper script
``multibuild/docker_test_wrap.sh``. The wrapper script sources the following
bash scripts::
multibuild/common_utils.sh multibuild/common_utils.sh
config.sh config.sh
......
...@@ -119,9 +119,11 @@ function install_run { ...@@ -119,9 +119,11 @@ function install_run {
# WHEEL_SDIR (optional) # WHEEL_SDIR (optional)
# MANYLINUX_URL (optional) # MANYLINUX_URL (optional)
# TEST_DEPENDS (optional) # TEST_DEPENDS (optional)
# MB_TEST_VER (optional)
local plat=${1:-${PLAT:-x86_64}} local plat=${1:-${PLAT:-x86_64}}
local mb_test_ver=${MB_TEST_VER:-"matthewbrett/trusty:"}
bitness=$([ "$plat" == i686 ] && echo 32 || echo 64) bitness=$([ "$plat" == i686 ] && echo 32 || echo 64)
local docker_image="matthewbrett/trusty:$bitness" local docker_image=$mb_test_ver$bitness
docker pull $docker_image docker pull $docker_image
docker run --rm \ docker run --rm \
-e PYTHON_VERSION="$MB_PYTHON_VERSION" \ -e PYTHON_VERSION="$MB_PYTHON_VERSION" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment