Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Carlo FERRIGNO
ci-template-cc
Commits
8edb426d
Unverified
Commit
8edb426d
authored
Jan 19, 2021
by
Volodymyr SAVCHENKO
Browse files
system-wide verify
parent
70d7e5f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
make-functions.sh
make-functions.sh
+16
-12
No files found.
make-functions.sh
View file @
8edb426d
...
...
@@ -33,19 +33,23 @@ function upgrade-oda-python() {
$PIP
install
--upgrade
pyyaml
--user
||
pip
install
--upgrade
pyyaml
\
||
{
echo
-e
"
\0
33[31missue updating python module of pyyaml from
$DIR
!
\0
33[0m"
;
exit
1
;
}
oda-cc version
-c
$DIR
||
{
$PIP
install
--upgrade
${
DIR
}
--user
||
pip
install
--upgrade
${
DIR
}
\
||
{
echo
-e
"
\0
33[31missue updating python module for ci-tempalte-cc from
$DIR
!
\0
33[0m"
;
exit
1
;
}
}
if
[
-s
$DIR
/setup.py
]
;
then
oda-cc version
-c
$DIR
||
{
$PIP
install
--upgrade
${
DIR
}
--user
||
pip
install
--upgrade
${
DIR
}
\
||
{
echo
-e
"
\0
33[31missue updating python module for ci-tempalte-cc from
$DIR
!
\0
33[0m"
;
exit
1
;
}
}
REQ_NB2W
=
$(
< requirements.txt
grep
nb2workflow |
tee
req_nb2w.txt
)
REQ_NB2W
=
$(
< requirements.txt
grep
nb2workflow |
tee
req_nb2w.txt
)
if
[
"
$REQ_NB2W
"
x
==
""
x
]
;
then
nb2workflow-version
>
req_nb2w.txt
REQ_NB2W
=
$(
cat
req_nb2w.txt
)
fi
if
[
"
$REQ_NB2W
"
x
==
""
x
]
;
then
nb2workflow-version
>
req_nb2w.txt
REQ_NB2W
=
$(
cat
req_nb2w.txt
)
fi
$PIP
freeze |
grep
nb2w |
grep
$(
cat
req_nb2w.txt
)
||
$PIP
install
-r
req_nb2w.txt
$PIP
freeze |
grep
nb2w |
grep
$(
cat
req_nb2w.txt
)
||
$PIP
install
-r
req_nb2w.txt
else
echo
-e
"
\0
33[34mNOTE: no python module in script directory - probably system-wide install, not verifying"
fi
NB2WORKFLOW_VERSION
=
$(
nb2workflow-version
)
}
...
...
@@ -377,8 +381,8 @@ function submit-all-scw() {
}
function
submit-all-cases
()
{
icversion
=
${
1
:?
}
nmax
=
${
2
:?
}
icversion
=
${
1
:?
icversion
}
nmax
=
${
2
:?
nmax
}
oda-node version
-v
||
{
echo
-e
"
\0
33[31mfailed to connect to ODAHUB
\0
33[0m"
...
...
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