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:
parent
85db545feb
commit
d78bc45be1
|
@ -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()
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
OPTION=""
|
||||
if [ "${STATIC_BUILD}" = "true" ]; then
|
||||
OPTION="--build-static"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
SSH_KEY=travis/travisci_builder_id_key
|
||||
|
||||
chmod 600 ${SSH_KEY}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
orig_dir=$(pwd)
|
||||
|
||||
sudo apt-get update -qq
|
||||
|
|
Loading…
Reference in New Issue