Commit 54cd2f39 authored by mattip's avatar mattip
Browse files

fixes from comments: MB_TEST_VER -> DOCKER_TEST_IMAGE; run tests

parent 86862e08
...@@ -26,7 +26,7 @@ matrix: ...@@ -26,7 +26,7 @@ matrix:
env: env:
- TEST_BUILDS=1 - TEST_BUILDS=1
- MB_ML_VER=2010 - MB_ML_VER=2010
- MB_TEST_VER=multibuild/xenial - DOCKER_TEST_IMAGE=multibuild/xenial64
# 32-bit builds # 32-bit builds
- os: linux - os: linux
dist: xenial dist: xenial
...@@ -39,7 +39,7 @@ matrix: ...@@ -39,7 +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 - DOCKER_TEST_IMAGE=multibuild/bionic32
# Builds with caching # Builds with caching
- os: linux - os: linux
dist: xenial dist: xenial
......
...@@ -125,14 +125,12 @@ real ``build_wheel`` function, which now comes (by default) from ...@@ -125,14 +125,12 @@ real ``build_wheel`` function, which now comes (by default) from
Test phase Test phase
---------- ----------
Specify the version to test with the ``MB_TEST_VER`` environment variable. The Specify the version to test with the ``DOCKER_TEST_IMAGE`` environment variable. The
default version is ``matthewbrett/trusty:``. A suffix will be added by the default version is ``matthewbrett/trusty:64``, or for ``i686`` platforms
``PLAT`` choice: ``i686`` will add ``32``, all others will add ``64``. ``matthewbrett/trusty:32``. Other versions that are currently valid are:
Versions that are currently valid are:
* ``multibuild/bionic32`` (32 only)
* ``matthewbrett/trusty:`` (32 or 64) * ``multibuild/xenial64`` (64 only)
* ``multibuild/bionic`` (32 only)
* ``multibuild/xenial`` (64 only)
See ``multibuild/docker_test_wrap.sh``. See ``multibuild/docker_test_wrap.sh``.
......
function run_tests {
python -c "import simplejson"
}
...@@ -43,6 +43,9 @@ if [ -n "$TEST_BUILDS" ]; then ...@@ -43,6 +43,9 @@ if [ -n "$TEST_BUILDS" ]; then
" "
build_multilinux $my_plat "pip install simplejson" build_multilinux $my_plat "pip install simplejson"
fi fi
build_index_wheel simplejson
CONFIG_PATH=tests/config.sh
install_run $PLAT
fi fi
source tests/test_supported_wheels.sh source tests/test_supported_wheels.sh
......
...@@ -121,9 +121,13 @@ function install_run { ...@@ -121,9 +121,13 @@ function install_run {
# TEST_DEPENDS (optional) # TEST_DEPENDS (optional)
# MB_TEST_VER (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:"} local mb_test_ver=${DOCKER_TEST_IMAGE:-"matthewbrett/trusty:"}
bitness=$([ "$plat" == i686 ] && echo 32 || echo 64) if [ -z "$DOCKER_TEST_IMAGE" ]; then
local docker_image=$mb_test_ver$bitness local bitness=$([ "$plat" == i686 ] && echo 32 || echo 64)
local docker_image="matthewbrett/trusty:$bitness"
else
local docker_image=$DOCKER_TEST_IMAGE
fi
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