Adds docker toolchain for a simpler build setup

This commit is contained in:
Rasmus Andersson 2019-01-05 16:20:22 -08:00
parent c6c99df958
commit 4ded41f4a3
8 changed files with 210 additions and 61 deletions

View file

@ -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