diff --git a/contrib/teamcity/build-configurations.sh b/contrib/teamcity/build-configurations.sh new file mode 100755 index 0000000000..87a26718de --- /dev/null +++ b/contrib/teamcity/build-configurations.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -e + +if [ -z "$ABC_BUILD_NAME" ]; then + echo "Error: Environment variable ABC_BUILD_NAME must be set" + exit 1 +fi + +echo "Running build configuration '${ABC_BUILD_NAME}'..." + +TOPLEVEL=`git rev-parse --show-toplevel` +cd "${TOPLEVEL}/contrib/teamcity" + +case "$ABC_BUILD_NAME" in + build-asan) + export CONFIGURE_FLAGS="--with-sanitizers=address --disable-ccache" + ./build.sh + ;; + + build-default) + ./build.sh + ./build-secp256k1.sh + ;; + + build-without-wallet) + export DISABLE_WALLET=1 + ./build.sh + ;; + + *) + echo "Error: Invalid build name '${ABC_BUILD_NAME}'" + exit 2 + ;; +esac