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
ae95051b
Commit
ae95051b
authored
7 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Simplify more the build stage
parent
2c84cff7
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/before_build.sh
+6
-4
6 additions, 4 deletions
gitlab/before_build.sh
gitlab/build.sh
+1
-10
1 addition, 10 deletions
gitlab/build.sh
with
7 additions
and
14 deletions
gitlab/before_build.sh
+
6
−
4
View file @
ae95051b
...
...
@@ -30,12 +30,14 @@ run_cmd ${CONDA_FOLDER}/bin/conda config --set always_yes yes --set changeps1 no
run_cmd
${
CONDA_FOLDER
}
/bin/conda config
--set
always_yes
true
run_cmd
${
CONDA_FOLDER
}
/bin/conda config
--set
show_channel_urls
true
run_cmd
${
CONDA_FOLDER
}
/bin/conda config
--set
anaconda_upload no
run_cmd
${
CONDA_FOLDER
}
/bin/conda config
--add
channels
${
CHANNEL_URL
}
run_cmd
${
CONDA_FOLDER
}
/bin/conda config
--add
channels
${
CONDA_CHANNEL
}
if
[
-z
"
${
CI_COMMIT_TAG
}
"
]
;
then
run_cmd
${
CONDA_FOLDER
}
/bin/conda config
--add
channels
${
CONDA_BETA_CHANNEL
}
fi
run_cmd
${
CONDA_FOLDER
}
/bin/conda config
--set
ssl_verify
false
run_cmd
${
CONDA_FOLDER
}
/bin/conda
install
--quiet
--yes
-c
defaults python
conda
=
4.4 curl conda-build
=
3
#
copies our central build configuration to the conda folder of the package
run_cmd
cp
_ci/conda_build_config.yaml conda/
#
updates conda installation
run_cmd
${
CONDA_FOLDER
}
/bin/conda
install
--quiet
--yes
python
conda
=
4.4 curl conda-build
=
3
# cleans up
run_cmd
${
CONDA_FOLDER
}
/bin/conda clean
--lock
...
...
This diff is collapsed.
Click to expand it.
gitlab/build.sh
+
1
−
10
View file @
ae95051b
...
...
@@ -19,16 +19,7 @@ fi
BOB_BUILD_NUMBER
=
`
head
-n
1 ./_ci/
${
OS_SLUG
}
/
${
PYTHON_VERSION
}
/build_number.txt |
tr
-d
'\n'
`
export_env BOB_BUILD_NUMBER
if
[
-z
"
${
CI_COMMIT_TAG
}
"
]
;
then
run_cmd
${
CONDA_FOLDER
}
/bin/conda build
--quiet
--override-channels
-c
${
CONDA_BETA_CHANNEL
}
-c
${
CONDA_CHANNEL
}
-c
https://repo.continuum.io/pkgs/main
-c
https://repo.continuum.io/pkgs/free
-c
https://repo.continuum.io/pkgs/r
-c
https://repo.continuum.io/pkgs/pro
--python
=
${
PYTHON_VERSION
}
conda
else
run_cmd
${
CONDA_FOLDER
}
/bin/conda build
--quiet
--override-channels
-c
${
CONDA_CHANNEL
}
-c
https://repo.continuum.io/pkgs/main
-c
https://repo.continuum.io/pkgs/free
-c
https://repo.continuum.io/pkgs/r
-c
https://repo.continuum.io/pkgs/pro
--python
=
${
PYTHON_VERSION
}
conda
fi
run_cmd
${
CONDA_FOLDER
}
/bin/conda build
--variant-config-files
_ci/conda_build_config.yaml
--quiet
--python
=
${
PYTHON_VERSION
}
conda
# Move the cache to conda env folder to cache it
if
[
"
${
OSNAME
}
"
==
"linux"
]
;
then
mkdir
-p
${
CONDA_ENVS_PATH
}
/.pkgs
touch
${
CONDA_ENVS_PATH
}
/.pkgs/urls
touch
${
CONDA_ENVS_PATH
}
/.pkgs/urls.txt
fi
merge_conda_cache
${
CONDA_ENVS_PATH
}
/.pkgs
${
CONDA_FOLDER
}
/pkgs
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