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
d20c8f2b
Commit
d20c8f2b
authored
4 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[gitlab-ci/base-build.yaml] Let conda-build handle python variants
parent
97adfaaf
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!159
Let conda-build handle python variants
Pipeline
#40111
passed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/devtools/data/gitlab-ci/base-build.yaml
+1
-3
1 addition, 3 deletions
bob/devtools/data/gitlab-ci/base-build.yaml
bob/devtools/scripts/ci.py
+4
-18
4 additions, 18 deletions
bob/devtools/scripts/ci.py
with
5 additions
and
21 deletions
bob/devtools/data/gitlab-ci/base-build.yaml
+
1
−
3
View file @
d20c8f2b
...
...
@@ -23,9 +23,7 @@ stages:
-
source ${CONDA_ROOT}/etc/profile.d/conda.sh
-
conda activate base
-
bdt ci base-build -vv nopython.txt
-
bdt ci base-build -vv --python=3.6 python.txt
-
bdt ci base-build -vv --python=3.7 python.txt
-
bdt ci base-build -vv --python=3.8 python.txt
-
bdt ci base-build -vv python.txt
-
'
[
"${CI_COMMIT_REF_NAME}"
=
"master"
]
&&
bdt
ci
base-deploy
-vv'
-
bdt ci clean -vv
cache
:
...
...
This diff is collapsed.
Click to expand it.
bob/devtools/scripts/ci.py
+
4
−
18
View file @
d20c8f2b
...
...
@@ -344,13 +344,6 @@ Examples:
default
=
"
bob
"
,
help
=
"
Group of packages (gitlab namespace) this package belongs to
"
,
)
@click.option
(
"
-p
"
,
"
--python
"
,
multiple
=
True
,
help
=
'
Versions of python in the format
"
x.y
"
we should build for. Pass
'
"
various times this option to build for multiple python versions
"
,
)
@click.option
(
"
-d
"
,
"
--dry-run/--no-dry-run
"
,
...
...
@@ -361,7 +354,7 @@ Examples:
)
@verbosity_option
()
@bdt.raise_on_error
def
base_build
(
order
,
group
,
python
,
dry_run
):
def
base_build
(
order
,
group
,
dry_run
):
"""
Builds base (dependence) packages.
This command builds dependence packages (packages that are not
...
...
@@ -395,17 +388,10 @@ def base_build(order, group, python, dry_run):
from
..
import
bootstrap
from
..build
import
base_build
as
_build
# combine all versions of python with recipes
if
python
:
recipes
=
list
(
itertools
.
product
(
python
,
recipes
))
else
:
recipes
=
list
(
itertools
.
product
([
None
],
recipes
))
for
k
,
(
pyver
,
recipe
)
in
enumerate
(
recipes
):
for
k
,
recipe
in
enumerate
(
recipes
):
echo_normal
(
"
\n
"
+
(
80
*
"
=
"
))
pytext
=
"
for python-%s
"
%
pyver
if
pyver
is
not
None
else
""
echo_normal
(
'
Building
"
%s
"
%s
(%d/%d)
'
%
(
recipe
,
pytext
,
k
+
1
,
len
(
recipes
))
'
Building
"
%s
"
(%d/%d)
'
%
(
recipe
,
k
+
1
,
len
(
recipes
))
)
echo_normal
((
80
*
"
=
"
)
+
"
\n
"
)
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
recipe
,
"
meta.yaml
"
)):
...
...
@@ -425,7 +411,7 @@ def base_build(order, group, python, dry_run):
group
=
group
,
recipe_dir
=
recipe
,
conda_build_config
=
variants_file
,
python_version
=
pyver
,
python_version
=
None
,
condarc_options
=
condarc_options
,
)
...
...
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