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
f0d994f4
Commit
f0d994f4
authored
Jan 10, 2019
by
André Anjos
💬
Browse files
[ci] More fixes
parent
99fefff7
Pipeline
#25790
failed with stages
in 5 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ci/bootstrap.sh
View file @
f0d994f4
...
...
@@ -96,9 +96,20 @@ install_miniconda() {
hash
-r
}
# Exports a given environment variable, verbosely
export_env
()
{
check_defined
"
${
1
}
"
export
${
1
}
log_info
"export
${
1
}
=
${
!1
}
"
}
check_defined CONDA_ROOT
check_defined CI_PROJECT_DIR
CONDARC
=
${
CONDA_ROOT
}
/condarc
export_env CONDARC
# checks if a conda installation exists. Otherwise, installs one
if
[
!
-e
${
CONDA_ROOT
}
/bin/conda
]
;
then
install_miniconda
${
CONDA_ROOT
}
...
...
ci/build.sh
View file @
f0d994f4
...
...
@@ -41,8 +41,11 @@ check_defined CI_PROJECT_NAME
check_defined CI_COMMIT_TAG
check_defined PYTHON_VERSION
CONDARC
=
${
CONDA_ROOT
}
/condarc
export_env CONDARC
BOB_PACKAGE_VERSION
=
`
cat
version.txt |
tr
-d
'\n'
`
;
check_defined
BOB_PACKAGE_VERSION
export_env
BOB_PACKAGE_VERSION
# Makes sure we activate the base environment if available
run_cmd
source
${
CONDA_ROOT
}
/etc/profile.d/conda.sh
...
...
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