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
2bb607c8
Commit
2bb607c8
authored
Nov 21, 2018
by
Ivan Pozdeev
Committed by
Matthew Brett
Dec 14, 2019
Browse files
Wrapper to catch yum package not found; tests to be run in docker
parent
fd9ae17d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
7 deletions
+25
-7
common_utils.sh
common_utils.sh
+1
-1
library_builders.sh
library_builders.sh
+3
-3
manylinux_utils.sh
manylinux_utils.sh
+6
-1
tests/test_manylinux_utils.sh
tests/test_manylinux_utils.sh
+1
-1
tests/test_manylinux_utils_docker.sh
tests/test_manylinux_utils_docker.sh
+10
-0
tests/test_multibuild.sh
tests/test_multibuild.sh
+4
-1
No files found.
common_utils.sh
View file @
2bb607c8
...
@@ -152,7 +152,7 @@ function untar {
...
@@ -152,7 +152,7 @@ function untar {
function install_rsync {
function install_rsync {
if [ -z "
$IS_OSX
" ]; then
if [ -z "
$IS_OSX
" ]; then
[[
$(
type
-P
rsync
)
]] || yum
install
-y
rsync
[[
$(
type
-P
rsync
)
]] || yum
_
install rsync
fi
fi
}
}
...
...
library_builders.sh
View file @
2bb607c8
...
@@ -110,7 +110,7 @@ function build_zlib {
...
@@ -110,7 +110,7 @@ function build_zlib {
# Gives an old but safe version
# Gives an old but safe version
if
[
-n
"
$IS_OSX
"
]
;
then return
;
fi
# OSX has zlib already
if
[
-n
"
$IS_OSX
"
]
;
then return
;
fi
# OSX has zlib already
if
[
-e
zlib-stamp
]
;
then return
;
fi
if
[
-e
zlib-stamp
]
;
then return
;
fi
yum
install
-y
zlib-devel
yum
_
install zlib-devel
touch
zlib-stamp
touch
zlib-stamp
}
}
...
@@ -157,7 +157,7 @@ function get_cmake {
...
@@ -157,7 +157,7 @@ function get_cmake {
if
[
-n
"
$IS_OSX
"
]
;
then
if
[
-n
"
$IS_OSX
"
]
;
then
brew
install
cmake
>
/dev/null
brew
install
cmake
>
/dev/null
else
else
yum
install
-y
cmake28
>
/dev/null
yum
_
install cmake28
>
/dev/null
cmake
=
cmake28
cmake
=
cmake28
fi
fi
echo
$cmake
echo
$cmake
...
@@ -360,7 +360,7 @@ function build_suitesparse {
...
@@ -360,7 +360,7 @@ function build_suitesparse {
if
[
-n
"
$IS_OSX
"
]
;
then
if
[
-n
"
$IS_OSX
"
]
;
then
brew
install
suite-sparse
>
/dev/null
brew
install
suite-sparse
>
/dev/null
else
else
yum
install
-y
suitesparse-devel
>
/dev/null
yum
_
install suitesparse-devel
>
/dev/null
fi
fi
touch
suitesparse-stamp
touch
suitesparse-stamp
}
}
...
...
manylinux_utils.sh
View file @
2bb607c8
...
@@ -62,7 +62,7 @@ function activate_ccache {
...
@@ -62,7 +62,7 @@ function activate_ccache {
ln
-s
/parent-home/.ccache
$HOME
/.ccache
ln
-s
/parent-home/.ccache
$HOME
/.ccache
# Now install ccache
# Now install ccache
suppress yum
install
-y
ccache
suppress yum
_
install ccache
# Create fake compilers and prepend them to the PATH
# Create fake compilers and prepend them to the PATH
# Note that yum is supposed to create these for us,
# Note that yum is supposed to create these for us,
...
@@ -78,3 +78,8 @@ function activate_ccache {
...
@@ -78,3 +78,8 @@ function activate_ccache {
# Prove to the developer that ccache is activated
# Prove to the developer that ccache is activated
echo
"Using C compiler:
$(
which gcc
)
"
echo
"Using C compiler:
$(
which gcc
)
"
}
}
function
yum_install
{
# CentOS 5 yum doesn't fail in some cases, e.g. if package is not found
# https://serverfault.com/questions/694942/yum-should-error-when-a-package-is-not-available
yum
install
-y
"
$1
"
&&
rpm
-q
"
$1
"
}
tests/test_manylinux_utils.sh
View file @
2bb607c8
# Tests for manylinux utils
# Tests for manylinux utils
that can run outside docker
# CPython path calculator
# CPython path calculator
[
"
$(
cpython_path 2.7
)
"
==
"/opt/python/cp27-cp27mu"
]
||
ingest
"cp 2.7"
[
"
$(
cpython_path 2.7
)
"
==
"/opt/python/cp27-cp27mu"
]
||
ingest
"cp 2.7"
...
...
tests/test_manylinux_utils_docker.sh
0 → 100644
View file @
2bb607c8
# Tests for manylinux utils that must run inside docker
source
manylinux_utils.sh
source
tests/utils.sh
suppress yum_install rsync
&&
suppress yum erase
-y
rsync
\
||
ingest
"yum_install valid"
suppress bash
-c
'! yum_install nonexistent'
||
ingest
"yum_install nonexistent"
barf
\ No newline at end of file
tests/test_multibuild.sh
View file @
2bb607c8
...
@@ -36,7 +36,10 @@ if [ -n "$TEST_BUILDS" ]; then
...
@@ -36,7 +36,10 @@ if [ -n "$TEST_BUILDS" ]; then
touch
config.sh
touch
config.sh
source
travis_linux_steps.sh
source
travis_linux_steps.sh
my_plat
=
${
PLAT
:-
x86_64
}
my_plat
=
${
PLAT
:-
x86_64
}
build_multilinux
$my_plat
"source tests/test_library_builders.sh"
build_multilinux
$my_plat
"
source tests/test_manylinux_utils_docker.sh
source tests/test_library_builders.sh
"
fi
fi
fi
fi
...
...
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