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
1acb19c6
Commit
1acb19c6
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[scripts][build] Create specific option for CI running
parent
d15ca431
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#26129
passed
6 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/devtools/scripts/build.py
+5
-3
5 additions, 3 deletions
bob/devtools/scripts/build.py
bob/devtools/scripts/ci.py
+1
-0
1 addition, 0 deletions
bob/devtools/scripts/ci.py
with
6 additions
and
3 deletions
bob/devtools/scripts/build.py
+
5
−
3
View file @
1acb19c6
...
...
@@ -69,10 +69,12 @@ Examples:
help
=
'
Only goes through the actions, but does not execute them
'
\
'
(combine with the verbosity flags - e.g. ``-vvv``) to enable
'
\
'
printing to help you understand what will be done
'
)
@click.option
(
'
-C
'
,
'
--ci/--no-ci
'
,
default
=
False
,
hidden
=
True
,
help
=
'
Use this flag to indicate the build will be running on the CI
'
)
@verbosity_option
()
@bdt.raise_on_error
def
build
(
recipe_dir
,
python
,
condarc
,
config
,
no_test
,
append_file
,
server
,
private
,
stable
,
dry_run
):
server
,
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
...
...
@@ -92,7 +94,7 @@ def build(recipe_dir, python, condarc, config, no_test, append_file,
# get potential channel upload and other auxiliary channels
channels
=
get_channels
(
public
=
(
not
private
),
stable
=
stable
,
server
=
server
,
intranet
=
private
)
intranet
=
ci
)
if
condarc
is
not
None
:
logger
.
info
(
'
Loading CONDARC file from %s...
'
,
condarc
)
...
...
@@ -118,7 +120,7 @@ def build(recipe_dir, python, condarc, config, no_test, append_file,
# and derived documentation building via Sphinx)
set_environment
(
'
DOCSERVER
'
,
server
,
verbose
=
True
)
doc_urls
=
get_docserver_setup
(
public
=
(
not
private
),
stable
=
stable
,
server
=
server
,
intranet
=
private
)
server
=
server
,
intranet
=
ci
)
set_environment
(
'
BOB_DOCUMENTATION_SERVER
'
,
doc_urls
,
verbose
=
True
)
for
d
in
recipe_dir
:
...
...
This diff is collapsed.
Click to expand it.
bob/devtools/scripts/ci.py
+
1
−
0
View file @
1acb19c6
...
...
@@ -249,6 +249,7 @@ def build(ctx, dry_run):
private
=
(
os
.
environ
[
'
CI_PROJECT_VISIBILITY
'
]
!=
'
public
'
),
stable
=
'
CI_COMMIT_TAG
'
in
os
.
environ
,
dry_run
=
dry_run
,
ci
=
True
,
)
git_clean_build
(
run_cmdline
,
arch
)
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