mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
show build type setting when building
This commit is contained in:
parent
98d8b7d463
commit
6db02e4362
1 changed files with 4 additions and 1 deletions
|
@ -18,12 +18,15 @@ def get_build():
|
||||||
try:
|
try:
|
||||||
tag = subprocess.check_output(['git', 'describe', '--exact-match', '--all']).strip()
|
tag = subprocess.check_output(['git', 'describe', '--exact-match', '--all']).strip()
|
||||||
if re.match('tags\/v\d+\.\d+\.\d+rc\d+$', tag.decode()):
|
if re.match('tags\/v\d+\.\d+\.\d+rc\d+$', tag.decode()):
|
||||||
|
print('Build: rc')
|
||||||
return 'rc'
|
return 'rc'
|
||||||
elif re.match('tags\/v\d+\.\d+\.\d+$', tag.decode()):
|
elif re.match('tags\/v\d+\.\d+\.\d+$', tag.decode()):
|
||||||
|
print('Build: release')
|
||||||
return 'release'
|
return 'release'
|
||||||
|
print('Build: qa')
|
||||||
return 'qa'
|
return 'qa'
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
# if the build doesn't have a tag
|
print("Couldn't determine build type, defaulting to qa.")
|
||||||
return 'qa'
|
return 'qa'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue