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
01eea2ea
Unverified
Commit
01eea2ea
authored
Nov 10, 2017
by
xoviat
Committed by
GitHub
Nov 10, 2017
Browse files
Merge pull request #77 from matthew-brett/spinner
Spinner: UI cleanup
parents
e8d14d8c
39b15f9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
common_utils.sh
common_utils.sh
+24
-4
tests/test_library_builders.sh
tests/test_library_builders.sh
+4
-0
No files found.
common_utils.sh
View file @
01eea2ea
...
@@ -18,12 +18,28 @@ if [ $(uname) == "Darwin" ]; then IS_OSX=1; fi
...
@@ -18,12 +18,28 @@ if [ $(uname) == "Darwin" ]; then IS_OSX=1; fi
# https://github.com/direnv/direnv/issues/210
# https://github.com/direnv/direnv/issues/210
shell_session_update
()
{
:
;
}
shell_session_update
()
{
:
;
}
if
[
-n
"
$MB_KEEP_ALIVE
"
]
;
then
function
start_spinner
{
if
[
-n
"
$MB_SPINNER_PID
"
]
;
then
return
fi
# Start a process that runs as a keep-alive
# Start a process that runs as a keep-alive
# to avoid travis quitting if there is no output
# to avoid travis quitting if there is no output
(
while
true
;
do
>
&2
echo
"Building libraries..."
sleep
60
done
)
&
MB_SPINNER_PID
=
$!
}
(
while
true
;
do
>
&2
echo
"Travis-CI keep-alive"
;
sleep
480
;
done
)
&
function
stop_spinner
{
fi
if
[
!
-n
"
$MB_SPINNER_PID
"
]
;
then
return
fi
kill
$MB_SPINNER_PID
unset
MB_SPINNER_PID
}
function
abspath
{
function
abspath
{
python
-c
"import os.path; print(os.path.abspath('
$1
'))"
python
-c
"import os.path; print(os.path.abspath('
$1
'))"
...
@@ -157,7 +173,11 @@ function build_wheel_cmd {
...
@@ -157,7 +173,11 @@ function build_wheel_cmd {
local
repo_dir
=
${
2
:-
$REPO_DIR
}
local
repo_dir
=
${
2
:-
$REPO_DIR
}
[
-
z
"
$repo_dir
"
]
&&
echo
"repo_dir not defined"
&&
exit
1
[
-
z
"
$repo_dir
"
]
&&
echo
"repo_dir not defined"
&&
exit
1
local
wheelhouse
=
$(
abspath
${
WHEEL_SDIR
:-
wheelhouse
}
)
local
wheelhouse
=
$(
abspath
${
WHEEL_SDIR
:-
wheelhouse
}
)
if
[
-
n
"
$(
is_function
"pre_build"
)
"
]
;
then
pre_build
;
fi
if
[
-
n
"
$(
is_function
"pre_build"
)
"
]
;
then
start_spinner
pre_build
stop_spinner
fi
if
[
-
n
"
$BUILD_DEPENDS
"
]
;
then
if
[
-
n
"
$BUILD_DEPENDS
"
]
;
then
pip
install
$(
pip_opts
)
$BUILD_DEPENDS
pip
install
$(
pip_opts
)
$BUILD_DEPENDS
fi
fi
...
...
tests/test_library_builders.sh
View file @
01eea2ea
...
@@ -8,9 +8,13 @@ source library_builders.sh
...
@@ -8,9 +8,13 @@ source library_builders.sh
if
[
"
$TRAVIS_OS_NAME
"
==
"osx"
]
;
then
brew update
;
fi
if
[
"
$TRAVIS_OS_NAME
"
==
"osx"
]
;
then
brew update
;
fi
start_spinner
suppress build_openssl
suppress build_openssl
suppress build_openblas
suppress build_openblas
suppress build_libwebp
suppress build_libwebp
suppress build_szip
suppress build_szip
suppress build_swig
suppress build_swig
suppress build_github fredrik-johansson/arb 2.11.1
suppress build_github fredrik-johansson/arb 2.11.1
stop_spinner
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