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
98500bfd
Unverified
Commit
98500bfd
authored
Nov 11, 2017
by
xoviat
Committed by
GitHub
Nov 11, 2017
Browse files
[common] improve spinner UI
parent
01eea2ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
common_utils.sh
common_utils.sh
+5
-1
No files found.
common_utils.sh
View file @
98500bfd
...
@@ -23,13 +23,15 @@ function start_spinner {
...
@@ -23,13 +23,15 @@ function start_spinner {
return
return
fi
fi
>
&2
echo
"Building libraries..."
# 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
(
while
true
;
do
>
&2
echo
"Building libraries..."
sleep
60
sleep
60
>
&2
echo
"Still building..."
done
)
&
done
)
&
MB_SPINNER_PID
=
$!
MB_SPINNER_PID
=
$!
disown
}
}
function
stop_spinner
{
function
stop_spinner
{
...
@@ -39,6 +41,8 @@ function stop_spinner {
...
@@ -39,6 +41,8 @@ function stop_spinner {
kill
$MB_SPINNER_PID
kill
$MB_SPINNER_PID
unset
MB_SPINNER_PID
unset
MB_SPINNER_PID
>
&2
echo
"Building libraries finished."
}
}
function
abspath
{
function
abspath
{
...
...
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