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
1d95c34a
Unverified
Commit
1d95c34a
authored
Apr 17, 2022
by
Matti Picus
Committed by
GitHub
Apr 17, 2022
Browse files
Merge pull request #468 from radarhere/docker_test_image
Use $plat when selecting default focal DOCKER_TEST_IMAGE
parents
d0fdfdd4
d93b6ece
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
travis_linux_steps.sh
travis_linux_steps.sh
+7
-9
No files found.
travis_linux_steps.sh
View file @
1d95c34a
...
@@ -121,19 +121,17 @@ function install_run {
...
@@ -121,19 +121,17 @@ function install_run {
if
[
-z
"
$DOCKER_TEST_IMAGE
"
]
;
then
if
[
-z
"
$DOCKER_TEST_IMAGE
"
]
;
then
if
[
"
$MB_ML_LIBC
"
==
"musllinux"
]
;
then
if
[
"
$MB_ML_LIBC
"
==
"musllinux"
]
;
then
local
docker_image
=
"multibuild/alpine3.15_
$plat
"
local
docker_image
=
"multibuild/alpine3.15_
$plat
"
elif
[
"
$plat
"
==
i686
]
;
then
local
docker_image
=
"matthewbrett/trusty:32"
else
else
local
bitness
=
$(
[
"
$plat
"
==
i686
]
&&
echo
32
||
echo
64
)
local
docker_image
=
"multibuild/focal_
$plat
"
if
[
"
$bitness
"
==
"32"
]
;
then
local
docker_image
=
"matthewbrett/trusty:
$bitness
"
else
local
docker_image
=
"multibuild/focal_x86_64"
fi
fi
fi
else
else
# aarch64 is called arm64v8 in Ubuntu
local
docker_image
=
"
$DOCKER_TEST_IMAGE
"
local
plat_subst
=
$(
[
"
$plat
"
==
aarch64
]
&&
echo
arm64v8
||
echo
$plat
)
local
docker_image
=
"
${
DOCKER_TEST_IMAGE
/\{PLAT\
}
/
$plat_subst
}"
fi
fi
# aarch64 is called arm64v8 in Ubuntu
local
plat_subst
=
$(
[
"
$plat
"
==
aarch64
]
&&
echo
arm64v8
||
echo
$plat
)
docker_image
=
"
${
docker_image
/\{PLAT\
}
/
$plat_subst
}"
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
"
\
...
...
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