Unverified Commit 2ec30271 authored by Volodymyr SAVCHENKO's avatar Volodymyr SAVCHENKO
Browse files

try faster

parent f1deaf49
......@@ -42,6 +42,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
echo -e "\033[32mfound ci-template-cc location in $DIR\033[0m"
function upgrade-oda-python() {
t0=$(date +%s)
echo "will update osa python"
PIP="python -m pip"
echo "selected pip: $PIP"
......@@ -53,14 +55,15 @@ import importlib as imp
if imp.util.find_spec("yaml") is None:
sys.exit(1)
'; then
echo -e '\033[32m valid ODA environment found\033[0m'
echo -e '\033[32m yaml found\033[0m'
else
echo -e '\033[31m ODA environment incomplete! will bootstrap\033[0m'
echo -e '\033[31m no yaml, will install\033[0m'
$PIP install --upgrade pyyaml --user || pip install --upgrade pyyaml \
|| { echo -e "\033[31missue updating python module of pyyaml from $DIR!\033[0m"; exit 1; }
fi
if [ -s $DIR/setup.py ]; then
echo -e "\033[32mfound $DIR/setup.py\033[0m"
oda-cc version -c $DIR || {
$PIP install --upgrade ${DIR} --user || pip install --upgrade ${DIR} \
|| { echo -e "\033[31missue updating python module for ci-tempalte-cc from $DIR!\033[0m"; exit 1; }
......@@ -72,6 +75,9 @@ if imp.util.find_spec("yaml") is None:
fi
NB2WORKFLOW_VERSION=$(nb2workflow-version)
tdone=$(date +%s)
echo "\033[31mspent $((tdone - t0)) seconds in upgrade-oda-python\033[0m"
}
if [ "$IN_TEST_CASE" == "yes" ]; then
......@@ -476,6 +482,7 @@ function run-reana() {
if [ "$cwl" == "download" ]; then
download-cwl
cwl=job.cwl
fi
echo "
......@@ -485,7 +492,7 @@ inputs:
input: inputs.yaml
workflow:
type: cwl
file: job.cwl
file: ${cwl}
outputs:
files:
- cwl/docker_outdir/cwl.output.json
......
__version__ = "0.1.3"
__version__ = "0.1.5"
[bumpversion]
current_version = 1.1.5
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?
serialize =
{major}.{minor}.{patch}-{release}{build}
{major}.{minor}.{patch}
[bumpversion:part:release]
optional_value = prod
first_value = dev
values =
dev
prod
[bumpversion:part:build]
[bumpversion:file:odacc/__init__.py]
[bumpversion:file:setup.py]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment