Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.devtools
Commits
cfc141a8
Commit
cfc141a8
authored
Jan 10, 2019
by
André Anjos
💬
Browse files
[ci] Even more fixes
parent
8d7d17b7
Pipeline
#25793
canceled with stages
in 4 minutes and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ci/bootstrap.sh
View file @
cfc141a8
...
...
@@ -14,7 +14,6 @@ log_info() {
echo
-e
"
$(
log_datetime
)
\0
33[1;34m
${
@
}
\0
33[0m"
}
log_error
()
{
echo
-e
"
$(
log_datetime
)
\0
33[1;31mError:
${
@
}
\0
33[0m"
>
&2
}
...
...
@@ -30,7 +29,6 @@ run_cmd() {
fi
}
# merges conda cache folders
# $1: Path to the main cache to keep. The directory must exist.
# $2: Path to the extra cache to be merged into main cache
...
...
@@ -46,7 +44,6 @@ merge_conda_cache() {
fi
}
# Checks just if the variable is defined and has non-zero length
check_defined
()
{
if
[
-z
"
${
!1+abc
}
"
]
;
then
...
...
@@ -59,7 +56,6 @@ check_defined() {
log_info
"
${
1
}
=
${
!1
}
"
}
# installs a miniconda installation.
# $1: Path to where to install miniconda.
install_miniconda
()
{
...
...
ci/build.sh
View file @
cfc141a8
...
...
@@ -15,6 +15,16 @@ log_error() {
echo
-e
"
$(
log_datetime
)
\0
33[1;31mError:
${
@
}
\0
33[0m"
>
&2
}
# Function for running command and echoing results
run_cmd
()
{
log_info
"
$
${
@
}
"
${
@
}
local
status
=
$?
if
[
${
status
}
!=
0
]
;
then
log_error
"Command Failed
\"
${
@
}
\"
"
exit
${
status
}
fi
}
# Checks just if the variable is defined and has non-zero length
check_defined
()
{
...
...
@@ -52,8 +62,8 @@ else
channel
=
"http://www.idiap.ch/public/conda"
fi
log_info
"
$
${
CONDA_ROOT
}
/bin/python
${
CI_PROJECT_DIR
}
/
_
ci/nextbuild.py
${
channel
}
${
CI_PROJECT_NAME
}
${
BOB_PACKAGE_VERSION
}
${
PYTHON_VERSION
}
"
BOB_BUILD_NUMBER
=
$(
${
CONDA_ROOT
}
/bin/python
${
CI_PROJECT_DIR
}
/
_
ci/nextbuild.py
${
channel
}
${
CI_PROJECT_NAME
}
${
BOB_PACKAGE_VERSION
}
${
PYTHON_VERSION
}
)
log_info
"
$
${
CONDA_ROOT
}
/bin/python
${
CI_PROJECT_DIR
}
/ci/nextbuild.py
${
channel
}
${
CI_PROJECT_NAME
}
${
BOB_PACKAGE_VERSION
}
${
PYTHON_VERSION
}
"
BOB_BUILD_NUMBER
=
$(
${
CONDA_ROOT
}
/bin/python
${
CI_PROJECT_DIR
}
/ci/nextbuild.py
${
channel
}
${
CI_PROJECT_NAME
}
${
BOB_PACKAGE_VERSION
}
${
PYTHON_VERSION
}
)
export_env BOB_BUILD_NUMBER
# copy the recipe_append.yaml over before build
...
...
@@ -70,6 +80,5 @@ run_cmd git clean -ffdx \
--exclude
=
"miniconda/pkgs/*.tar.bz2"
\
--exclude
=
"miniconda/pkgs/urls.txt"
\
--exclude
=
"miniconda/conda-bld/
${
_os
}
-64/*.tar.bz2"
\
--exclude
=
"_ci"
\
--exclude
=
"dist/*.zip"
\
--exclude
=
"sphinx"
Write
Preview
Supports
Markdown
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