mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
Properly fail in travis if sub-script fail.
Make `kiwix-build.py` also fail if sub-command fail instead of just print an error message and quit. `kiwix-deploy.py` is far more simple and already fails miserably if a sub-command fails.
This commit is contained in:
@ -245,7 +245,7 @@ class BuildEnv:
|
||||
'It should probably not work, but well, you still can have a try.')
|
||||
cont = input('Do you want to continue ? [y/N]')
|
||||
if cont.lower() != 'y':
|
||||
sys.exit(0, 'Exiting...')
|
||||
sys.exit(0)
|
||||
if _platform == 'Darwin':
|
||||
print('WARNING: kiwix-build has not been tested on MacOS platfrom.\n'
|
||||
'Tests, bug reports and patches are welcomed.')
|
||||
@ -1011,7 +1011,7 @@ class Builder:
|
||||
print("[BUILD]")
|
||||
self.build()
|
||||
except StopBuild:
|
||||
print("Stopping build due to errors")
|
||||
sys.exit("Stopping build due to errors")
|
||||
|
||||
def parse_args():
|
||||
parser = argparse.ArgumentParser()
|
||||
|
Reference in New Issue
Block a user