#!/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