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
f0d994f4
Commit
f0d994f4
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[ci] More fixes
parent
99fefff7
No related branches found
No related tags found
No related merge requests found
Pipeline
#25790
failed
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
+11
-0
11 additions, 0 deletions
ci/bootstrap.sh
ci/build.sh
+4
-1
4 additions, 1 deletion
ci/build.sh
with
15 additions
and
1 deletion
ci/bootstrap.sh
+
11
−
0
View file @
f0d994f4
...
@@ -96,9 +96,20 @@ install_miniconda() {
...
@@ -96,9 +96,20 @@ install_miniconda() {
hash
-r
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 CONDA_ROOT
check_defined CI_PROJECT_DIR
check_defined CI_PROJECT_DIR
CONDARC
=
${
CONDA_ROOT
}
/condarc
export_env CONDARC
# checks if a conda installation exists. Otherwise, installs one
# checks if a conda installation exists. Otherwise, installs one
if
[
!
-e
${
CONDA_ROOT
}
/bin/conda
]
;
then
if
[
!
-e
${
CONDA_ROOT
}
/bin/conda
]
;
then
install_miniconda
${
CONDA_ROOT
}
install_miniconda
${
CONDA_ROOT
}
...
...
This diff is collapsed.
Click to expand it.
ci/build.sh
+
4
−
1
View file @
f0d994f4
...
@@ -41,8 +41,11 @@ check_defined CI_PROJECT_NAME
...
@@ -41,8 +41,11 @@ check_defined CI_PROJECT_NAME
check_defined CI_COMMIT_TAG
check_defined CI_COMMIT_TAG
check_defined PYTHON_VERSION
check_defined PYTHON_VERSION
CONDARC
=
${
CONDA_ROOT
}
/condarc
export_env CONDARC
BOB_PACKAGE_VERSION
=
`
cat
version.txt |
tr
-d
'\n'
`
;
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
# Makes sure we activate the base environment if available
run_cmd
source
${
CONDA_ROOT
}
/etc/profile.d/conda.sh
run_cmd
source
${
CONDA_ROOT
}
/etc/profile.d/conda.sh
...
...
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