Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
86862e08
Commit
86862e08
authored
Feb 28, 2020
by
mattip
Browse files
allow choosing the test docker image
parent
b943f33a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
8 deletions
+22
-8
.travis.yml
.travis.yml
+2
-0
README.rst
README.rst
+17
-7
travis_linux_steps.sh
travis_linux_steps.sh
+3
-1
No files found.
.travis.yml
View file @
86862e08
...
...
@@ -26,6 +26,7 @@ matrix:
env
:
-
TEST_BUILDS=1
-
MB_ML_VER=2010
-
MB_TEST_VER=multibuild/xenial
# 32-bit builds
-
os
:
linux
dist
:
xenial
...
...
@@ -38,6 +39,7 @@ matrix:
-
TEST_BUILDS=1
-
PLAT=i686
-
MB_ML_VER=2010
-
MB_TEST_VER=multibuild/bionic
# Builds with caching
-
os
:
linux
dist
:
xenial
...
...
README.rst
View file @
86862e08
...
...
@@ -24,7 +24,7 @@ The AppVeyor setup is designed to build *and test*:
* 64-bit Windows ``win_amd64`` 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?
...
...
@@ -78,7 +78,7 @@ Manylinux
=========
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
...
...
@@ -125,11 +125,21 @@ real ``build_wheel`` function, which now comes (by default) from
Test phase
----------
Testing is in an Ubuntu 14.04 Docker container - see
``multibuild/docker_test_wrap.sh``. ``multibuild/travis_linux_steps.sh``
defines the ``install_run`` function, which starts up the testing Docker
container with a wrapper script ``multibuild/docker_test_wrap.sh``. The
wrapper script sources the following bash scripts::
Specify the version to test with the ``MB_TEST_VER`` environment variable. The
default version is ``matthewbrett/trusty:``. A suffix will be added by the
``PLAT`` choice: ``i686`` will add ``32``, all others will add ``64``.
Versions that are currently valid are:
* ``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
config.sh
...
...
travis_linux_steps.sh
View file @
86862e08
...
...
@@ -119,9 +119,11 @@ function install_run {
# WHEEL_SDIR (optional)
# MANYLINUX_URL (optional)
# TEST_DEPENDS (optional)
# MB_TEST_VER (optional)
local
plat
=
${
1
:-${
PLAT
:-
x86_64
}}
local
mb_test_ver
=
${
MB_TEST_VER
:-
"matthewbrett/trusty:"
}
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 run
--rm
\
-e
PYTHON_VERSION
=
"
$MB_PYTHON_VERSION
"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment