Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.devtools
Commits
b61d0915
Commit
b61d0915
authored
Jan 17, 2019
by
André Anjos
💬
Browse files
[ci] Set is_prerelease before using it
parent
f1a72301
Pipeline
#26058
passed with stages
in 5 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/devtools/scripts/ci.py
View file @
b61d0915
...
...
@@ -250,6 +250,11 @@ def build(dry_run):
set_environment
(
'LC_ALL'
,
os
.
environ
[
'LANG'
],
os
.
environ
,
verbose
=
True
)
set_environment
(
'MATPLOTLIBRC'
,
MATPLOTLIB_RCDIR
,
verbose
=
True
)
# get information about the version of the package being built
version
,
is_prerelease
=
check_version
(
workdir
,
os
.
environ
.
get
(
'CI_COMMIT_TAG'
))
set_environment
(
'BOB_PACKAGE_VERSION'
,
version
,
verbose
=
True
)
# setup BOB_DOCUMENTATION_SERVER environment variable (used for bob.extension
# and derived documentation building via Sphinx)
set_environment
(
'DOCSERVER'
,
SERVER
,
os
.
environ
,
verbose
=
True
)
...
...
@@ -258,11 +263,6 @@ def build(dry_run):
server
=
SERVER
,
intranet
=
True
)
set_environment
(
'BOB_DOCUMENTATION_SERVER'
,
doc_urls
,
verbose
=
True
)
# get information about the version of the package being built
version
,
is_prerelease
=
check_version
(
workdir
,
os
.
environ
.
get
(
'CI_COMMIT_TAG'
))
set_environment
(
'BOB_PACKAGE_VERSION'
,
version
,
verbose
=
True
)
condarc
=
os
.
path
.
join
(
prefix
,
'condarc'
)
logger
.
info
(
'Loading (this build
\'
s) CONDARC file from %s...'
,
condarc
)
with
open
(
condarc
,
'rb'
)
as
f
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment