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
08b88229
Commit
08b88229
authored
5 years ago
by
André Anjos
Browse files
Options
Downloads
Plain Diff
Merge branch 'removed-use-local-option' into 'master'
Removed use-local option See merge request
!68
parents
22ded188
a0aebba4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!68
Removed use-local option
Pipeline
#31737
passed
5 years ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/devtools/scripts/build.py
+2
-5
2 additions, 5 deletions
bob/devtools/scripts/build.py
bob/devtools/scripts/ci.py
+0
-4
0 additions, 4 deletions
bob/devtools/scripts/ci.py
bob/devtools/scripts/test.py
+2
-6
2 additions, 6 deletions
bob/devtools/scripts/test.py
with
4 additions
and
15 deletions
bob/devtools/scripts/build.py
+
2
−
5
View file @
08b88229
...
...
@@ -67,9 +67,6 @@ Examples:
@click.option
(
'
-X
'
,
'
--stable/--no-stable
'
,
default
=
False
,
help
=
'
Set this to **exclude** beta channels from your build -
'
\
'
notice this option has no effect if you also pass --condarc
'
)
@click.option
(
'
-L
'
,
'
--use-local/--no-use-local
'
,
default
=
False
,
help
=
'
Set this to **include** the locally built packages on the search
'
\
'
list - notice this option has no effect if you also pass --condarc
'
)
@click.option
(
'
-d
'
,
'
--dry-run/--no-dry-run
'
,
default
=
False
,
help
=
'
Only goes through the actions, but does not execute them
'
\
'
(combine with the verbosity flags - e.g. ``-vvv``) to enable
'
\
...
...
@@ -79,7 +76,7 @@ Examples:
@verbosity_option
()
@bdt.raise_on_error
def
build
(
recipe_dir
,
python
,
condarc
,
config
,
no_test
,
append_file
,
server
,
group
,
private
,
stable
,
use_local
,
dry_run
,
ci
):
server
,
group
,
private
,
stable
,
dry_run
,
ci
):
"""
Builds package through conda-build with stock configuration
This command wraps the execution of conda-build so that you use the same
...
...
@@ -107,7 +104,7 @@ def build(recipe_dir, python, condarc, config, no_test, append_file,
condarc_options
=
yaml
.
load
(
f
,
Loader
=
yaml
.
FullLoader
)
else
:
# use default and add channels
all_channels
=
[
'
local
'
]
if
use_local
else
[]
all_channels
=
[]
all_channels
+=
channels
+
[
'
defaults
'
]
condarc_options
=
yaml
.
load
(
BASE_CONDARC
,
Loader
=
yaml
.
FullLoader
)
logger
.
info
(
'
Using the following channels during build:
\n
- %s
'
,
...
...
This diff is collapsed.
Click to expand it.
bob/devtools/scripts/ci.py
+
0
−
4
View file @
08b88229
...
...
@@ -342,7 +342,6 @@ def base_build(order, group, python, dry_run):
bootstrap
=
bootstrap
,
server
=
SERVER
,
intranet
=
True
,
use_local
=
True
,
group
=
group
,
recipe_dir
=
recipe
,
conda_build_config
=
variants_file
,
...
...
@@ -408,7 +407,6 @@ def test(ctx, dry_run):
group
=
group
,
private
=
(
os
.
environ
[
'
CI_PROJECT_VISIBILITY
'
]
!=
'
public
'
),
stable
=
'
CI_COMMIT_TAG
'
in
os
.
environ
,
use_local
=
False
,
dry_run
=
dry_run
,
ci
=
True
,
)
...
...
@@ -472,7 +470,6 @@ def build(ctx, dry_run):
group
=
group
,
private
=
(
os
.
environ
[
'
CI_PROJECT_VISIBILITY
'
]
!=
'
public
'
),
stable
=
'
CI_COMMIT_TAG
'
in
os
.
environ
,
use_local
=
False
,
dry_run
=
dry_run
,
ci
=
True
,
)
...
...
@@ -603,7 +600,6 @@ def nightlies(ctx, order, dry_run):
group
=
group
,
private
=
private
,
stable
=
stable
,
use_local
=
True
,
dry_run
=
dry_run
,
ci
=
True
,
)
...
...
This diff is collapsed.
Click to expand it.
bob/devtools/scripts/test.py
+
2
−
6
View file @
08b88229
...
...
@@ -58,9 +58,6 @@ Examples:
@click.option
(
'
-X
'
,
'
--stable/--no-stable
'
,
default
=
False
,
help
=
'
Set this to **exclude** beta channels from your build -
'
\
'
notice this option has no effect if you also pass --condarc
'
)
@click.option
(
'
-L
'
,
'
--use-local/--no-use-local
'
,
default
=
False
,
help
=
'
Set this to **include** the locally built packages on the search
'
\
'
list - notice this option has no effect if you also pass --condarc
'
)
@click.option
(
'
-d
'
,
'
--dry-run/--no-dry-run
'
,
default
=
False
,
help
=
'
Only goes through the actions, but does not execute them
'
\
'
(combine with the verbosity flags - e.g. ``-vvv``) to enable
'
\
...
...
@@ -69,8 +66,7 @@ Examples:
help
=
'
Use this flag to indicate the build will be running on the CI
'
)
@verbosity_option
()
@bdt.raise_on_error
def
test
(
package
,
condarc
,
config
,
append_file
,
server
,
group
,
private
,
stable
,
use_local
,
dry_run
,
ci
):
def
test
(
package
,
condarc
,
config
,
append_file
,
server
,
group
,
private
,
stable
,
dry_run
,
ci
):
"""
Tests (pre-built) package through conda-build with stock configuration
This command wraps the execution of conda-build so that you use the same
...
...
@@ -96,7 +92,7 @@ def test(package, condarc, config, append_file, server, group, private, stable,
condarc_options
=
yaml
.
load
(
f
,
Loader
=
yaml
.
FullLoader
)
else
:
# use default and add channels
all_channels
=
[
'
local
'
]
if
use_local
else
[]
all_channels
=
[]
all_channels
+=
channels
+
[
'
defaults
'
]
condarc_options
=
yaml
.
load
(
BASE_CONDARC
,
Loader
=
yaml
.
FullLoader
)
logger
.
info
(
'
Using the following channels during build:
\n
- %s
'
,
...
...
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