Skip to content
Snippets Groups Projects
Commit 29a95f0d authored by Cam Saul's avatar Cam Saul
Browse files

Fail ./build-drivers.sh if any driver fails to build [ci skip]

parent 4550244d
No related branches found
No related tags found
No related merge requests found
#! /usr/bin/env bash
set -eu
set -euo pipefail
project_root=`pwd`
......
#! /usr/bin/env bash
set -e
set -eo pipefail
# If ran as `./bin/build-drivers.sh clean` then uninstall metabase-core from the local Maven repo and delete
if [ "$1" == clean ]; then
......@@ -22,4 +22,9 @@ fi
for driver in `ls modules/drivers/ | sed 's|/$||'`; do # strip trailing slashes if `ls` is set to include them
echo "Build: $driver"
./bin/build-driver.sh "$driver"
if [ $? -ne 0 ]; then
echo "Failed to build driver $driver."
exit -1
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment