Merge pull request #3019 from Carbenium/ci-packpack-exit-code
CI: Make sure the Travis build fails if packpack exits with an error code
This commit is contained in:
commit
6e32e86f10
|
@ -1,4 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
# packpack setup file for the ZoneMinder project
|
# packpack setup file for the ZoneMinder project
|
||||||
# Written by Andrew Bauer
|
# Written by Andrew Bauer
|
||||||
|
|
||||||
|
@ -250,6 +253,13 @@ execpackpack () {
|
||||||
else
|
else
|
||||||
packpack/packpack $parms
|
packpack/packpack $parms
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo
|
||||||
|
echo "ERROR: An error occurred while executing packpack."
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check for connectivity with the deploy target host
|
# Check for connectivity with the deploy target host
|
||||||
|
|
Loading…
Reference in New Issue