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
41c89a5e
Commit
41c89a5e
authored
Aug 17, 2019
by
Matthew Brett
Browse files
Add manylinux tag variable
parent
ed1cfaf3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
.travis.yml
.travis.yml
+6
-0
tests/test_library_builders.sh
tests/test_library_builders.sh
+6
-1
travis_linux_steps.sh
travis_linux_steps.sh
+9
-2
No files found.
.travis.yml
View file @
41c89a5e
...
...
@@ -15,6 +15,12 @@ matrix:
dist
:
xenial
env
:
-
TEST_BUILDS=1
# 64-bit builds, manylinux2014
-
os
:
linux
dist
:
xenial
env
:
-
TEST_BUILDS=1
-
MB_ML_VER=2010
# 32-bit builds
-
os
:
linux
dist
:
xenial
...
...
tests/test_library_builders.sh
View file @
41c89a5e
# Test some library builders
# The environment
uname
-a
ldd
--version
# Smoke test
export
BUILD_PREFIX
=
"
${
PWD
}
/builds"
rm_mkdir
$BUILD_PREFIX
...
...
@@ -46,4 +51,4 @@ suppress build_new_zlib
stop_spinner
# Exit 1 if any test errors
barf
\ No newline at end of file
barf
travis_linux_steps.sh
View file @
41c89a5e
...
...
@@ -13,6 +13,11 @@ set -e
MANYLINUX_URL
=
${
MANYLINUX_URL
:-
https
://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com
}
# Default Manylinux version
# Warning: ignored if DOCKER_IMAGE variable is set.
# See build_multilinux function.
MB_ML_VER
=
${
MB_ML_VER
:-
1
}
# Get our own location on this filesystem
MULTIBUILD_DIR
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
...
...
@@ -70,15 +75,16 @@ function build_multilinux {
#
# Depends on
# MB_PYTHON_VERSION
# MB_ML_VER
# UNICODE_WIDTH (optional)
# BUILD_DEPENDS (optional)
# DOCKER_IMAGE (optional)
# DOCKER_IMAGE (optional)
# MANYLINUX_URL (optional)
# WHEEL_SDIR (optional)
local
plat
=
$1
[
-z
"
$plat
"
]
&&
echo
"plat not defined"
&&
exit
1
local
build_cmds
=
"
$2
"
local
docker_image
=
${
DOCKER_IMAGE
:-
quay
.io/pypa/manylinux
1
_\
$plat
}
local
docker_image
=
${
DOCKER_IMAGE
:-
quay
.io/pypa/manylinux
${
MB_ML_VER
}
_
\
$plat
}
docker_image
=
$(
eval echo
"
$docker_image
"
)
retry docker pull
$docker_image
docker run
--rm
\
...
...
@@ -95,6 +101,7 @@ function build_multilinux {
-e
USE_CCACHE
=
"
$USE_CCACHE
"
\
-e
REPO_DIR
=
"
$repo_dir
"
\
-e
PLAT
=
"
$PLAT
"
\
-e
MB_ML_VER
=
"
$MB_ML_VER
"
\
-v
$PWD
:/io
\
-v
$HOME
:/parent-home
\
$docker_image
/io/
$MULTIBUILD_DIR
/docker_build_wrap.sh
...
...
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