mirror of
https://github.com/xenia-project/build-tools.git
synced 2026-01-31 01:25:25 +01:00
No shell, try new git on travis.
This commit is contained in:
54
premake
54
premake
@@ -67,7 +67,6 @@ def build_premake():
|
||||
'windows',
|
||||
])
|
||||
else:
|
||||
run_premake('linux', 'clean')
|
||||
shell_call([
|
||||
'make',
|
||||
'-f', 'Bootstrap.mak',
|
||||
@@ -110,10 +109,10 @@ def shell_call(command, throw_on_error=True, stdout_path=None):
|
||||
try:
|
||||
if throw_on_error:
|
||||
result = 1
|
||||
subprocess.check_call(command, shell=True, stdout=stdout_file)
|
||||
subprocess.check_call(command, shell=False, stdout=stdout_file)
|
||||
result = 0
|
||||
else:
|
||||
result = subprocess.call(command, shell=True, stdout=stdout_file)
|
||||
result = subprocess.call(command, shell=False, stdout=stdout_file)
|
||||
finally:
|
||||
if stdout_file:
|
||||
stdout_file.close()
|
||||
@@ -126,26 +125,35 @@ def git_submodule_update():
|
||||
Older versions of git do not support 'update --init --recursive'. We could
|
||||
check and run it on versions that do support it and speed things up a bit.
|
||||
"""
|
||||
shell_call([
|
||||
'git',
|
||||
'submodule',
|
||||
'init',
|
||||
])
|
||||
shell_call([
|
||||
'git',
|
||||
'submodule',
|
||||
'foreach',
|
||||
'--recursive',
|
||||
'git',
|
||||
'submodule',
|
||||
'init',
|
||||
])
|
||||
shell_call([
|
||||
'git',
|
||||
'submodule',
|
||||
'update',
|
||||
'--recursive',
|
||||
])
|
||||
if True:
|
||||
shell_call([
|
||||
'git',
|
||||
'submodule',
|
||||
'update',
|
||||
'--init',
|
||||
'--recursive',
|
||||
])
|
||||
else:
|
||||
shell_call([
|
||||
'git',
|
||||
'submodule',
|
||||
'init',
|
||||
])
|
||||
shell_call([
|
||||
'git',
|
||||
'submodule',
|
||||
'foreach',
|
||||
'--recursive',
|
||||
'git',
|
||||
'submodule',
|
||||
'init',
|
||||
])
|
||||
shell_call([
|
||||
'git',
|
||||
'submodule',
|
||||
'update',
|
||||
'--recursive',
|
||||
])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user