Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.admin
Commits
7ccd43dc
Commit
7ccd43dc
authored
7 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
install conda only in build stage
parent
969b34f6
No related branches found
No related tags found
1 merge request
!63
Conda package based CI
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gitlab/functions.sh
+5
-2
5 additions, 2 deletions
gitlab/functions.sh
templates/gitlab-ci.yml
+1
-1
1 addition, 1 deletion
templates/gitlab-ci.yml
with
6 additions
and
3 deletions
gitlab/functions.sh
+
5
−
2
View file @
7ccd43dc
...
@@ -343,9 +343,12 @@ if [ -z "${CONDA_FOLDER}" ]; then
...
@@ -343,9 +343,12 @@ if [ -z "${CONDA_FOLDER}" ]; then
CONDA_FOLDER
=
/opt/miniconda
CONDA_FOLDER
=
/opt/miniconda
fi
fi
# check if a conda installation exists. Otherwise, install one:
# check if a conda installation exists. Otherwise, install one (only in build
# stage):
if
[
!
-e
${
CONDA_FOLDER
}
/bin/conda
]
;
then
if
[
!
-e
${
CONDA_FOLDER
}
/bin/conda
]
;
then
install_miniconda
${
CONDA_FOLDER
}
if
[
"
${
CI_JOB_STAGE
}
"
==
"build"
]
;
then
install_miniconda
${
CONDA_FOLDER
}
fi
fi
fi
PYVER
=
py
$(
echo
${
PYTHON_VERSION
}
|
tr
-d
'.'
)
PYVER
=
py
$(
echo
${
PYTHON_VERSION
}
|
tr
-d
'.'
)
...
...
This diff is collapsed.
Click to expand it.
templates/gitlab-ci.yml
+
1
−
1
View file @
7ccd43dc
...
@@ -17,7 +17,7 @@ stages:
...
@@ -17,7 +17,7 @@ stages:
.build_template
:
&build_job
.build_template
:
&build_job
stage
:
build
stage
:
build
before_script
:
before_script
:
-
export PATH=$
{
CONDA_FOLDER
}
:$PATH
-
export PATH=$CONDA_FOLDER:$PATH
-
mkdir _ci
-
mkdir _ci
-
curl https://curl.haxx.se/ca/cacert.pem > _ci/cacert.pem
-
curl https://curl.haxx.se/ca/cacert.pem > _ci/cacert.pem
-
export CURL_CA_BUNDLE=`pwd`/_ci/cacert.pem
-
export CURL_CA_BUNDLE=`pwd`/_ci/cacert.pem
...
...
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