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
76192976
"...ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "fdb501e3d9603410ddf120deeb9eef551c7565df"
Unverified
Commit
76192976
authored
Nov 10, 2017
by
xoviat
Committed by
GitHub
Nov 10, 2017
Browse files
[common] set functions
parent
e8d14d8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
common_utils.sh
common_utils.sh
+19
-3
No files found.
common_utils.sh
View file @
76192976
...
@@ -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
"Travis-CI keep-alive"
sleep
480
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
'))"
...
...
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