Adds docker toolchain for a simpler build setup
This commit is contained in:
parent
c6c99df958
commit
4ded41f4a3
8 changed files with 210 additions and 61 deletions
|
|
@ -43,11 +43,15 @@ def getGitHash():
|
|||
try:
|
||||
_gitHash = subprocess.check_output(
|
||||
['git', '-C', BASEDIR, 'rev-parse', '--short', 'HEAD'],
|
||||
shell=False,
|
||||
stderr=subprocess.STDOUT,
|
||||
**_enc_kwargs
|
||||
).strip()
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
# git rev-parse --short HEAD > githash.txt
|
||||
_gitHash = readTextFile(pjoin(BASEDIR, 'githash.txt')).strip()
|
||||
except:
|
||||
pass
|
||||
return _gitHash
|
||||
|
||||
|
||||
|
|
|
|||
Reference in a new issue