diff --git a/bin/first_time_setup.sh b/bin/first_time_setup.sh index 5ad538bb..8d847910 100755 --- a/bin/first_time_setup.sh +++ b/bin/first_time_setup.sh @@ -50,4 +50,15 @@ for repo in ${UTIL_REPOS} ; do done popd -INSTALL_WEB=web mvn -DskipTests=true -Dcheckstyle.skip=true clean package || die "Error building bubble jar" +if [[ -z "${BUBBLE_SETUP_MODE}" || "${BUBBLE_SETUP_MODE}" == "web" ]] ; then + INSTALL_WEB=web mvn -DskipTests=true -Dcheckstyle.skip=true clean package || die "Error building bubble jar" + +elif [[ "${BUBBLE_SETUP_MODE}" == "debug" ]] ; then + DEBUG_BUILD=debug mvn -DskipTests=true -Dcheckstyle.skip=true clean package || die "Error building bubble jar" + +elif [[ "${BUBBLE_SETUP_MODE}" == "production" ]] ; then + BUBBLE_PRODUCTION=1 mvn -DskipTests=true -Dcheckstyle.skip=true clean package || die "Error building bubble jar" + +else + die "env var BUBBLE_SETUP_MODE was invalid: ${BUBBLE_SETUP_MODE}" +fi