Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
cfc141a8
Commit
cfc141a8
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Even more fixes
parent
8d7d17b7
No related branches found
No related tags found
No related merge requests found
Pipeline
#25793
canceled
6 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci/bootstrap.sh
+0
-4
0 additions, 4 deletions
ci/bootstrap.sh
ci/build.sh
+12
-3
12 additions, 3 deletions
ci/build.sh
with
12 additions
and
7 deletions
ci/bootstrap.sh
+
0
−
4
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
()
{
...
...
This diff is collapsed.
Click to expand it.
ci/build.sh
+
12
−
3
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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment