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:
Matthieu Gautier
2017-02-13 11:53:40 +01:00
parent 85db545feb
commit d78bc45be1
4 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
OPTION=""
if [ "${STATIC_BUILD}" = "true" ]; then
OPTION="--build-static"

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
SSH_KEY=travis/travisci_builder_id_key
chmod 600 ${SSH_KEY}

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
orig_dir=$(pwd)
sudo apt-get update -qq