forked from LBRYCommunity/lbry-sdk
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:
|
||||
tag = subprocess.check_output(['git', 'describe', '--exact-match', '--all']).strip()
|
||||
if re.match('tags\/v\d+\.\d+\.\d+rc\d+$', tag.decode()):
|
||||
print('Build: rc')
|
||||
return 'rc'
|
||||
elif re.match('tags\/v\d+\.\d+\.\d+$', tag.decode()):
|
||||
print('Build: release')
|
||||
return 'release'
|
||||
print('Build: qa')
|
||||
return 'qa'
|
||||
except subprocess.CalledProcessError:
|
||||
# if the build doesn't have a tag
|
||||
print("Couldn't determine build type, defaulting to qa.")
|
||||
return 'qa'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue