mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 03:19:53 +03:00
Nightly build enabled when suffix starts with 'N'
This commit is contained in:
parent
23ceb830b3
commit
d80861db37
1 changed files with 4 additions and 1 deletions
|
@ -194,7 +194,10 @@ def build_firmware(path):
|
|||
for opt, value in command_options.items():
|
||||
cmd.append("-D%s=%s" % (opt, value))
|
||||
if "OPENTX_VERSION_SUFFIX" in os.environ:
|
||||
cmd.append('-DVERSION_SUFFIX="%s"' % os.environ["OPENTX_VERSION_SUFFIX"])
|
||||
suffix = os.environ["OPENTX_VERSION_SUFFIX"]
|
||||
cmd.append('-DVERSION_SUFFIX="%s"' % suffix)
|
||||
if suffix.startswith("N"):
|
||||
cmd.append('-DNIGHTLY_BUILD_WARNING')
|
||||
cmd.append(srcdir)
|
||||
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
output, error = proc.communicate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue