build prod only for master-branch

This commit is contained in:
Felix 2019-05-01 19:55:04 +02:00
parent dfdb3ab453
commit f244fc7130

View file

@ -6,7 +6,7 @@ jobs:
- image: circleci/android:api-28 - image: circleci/android:api-28
environment: environment:
JVM_OPTS: -XX\:MaxHeapSize\=2048m -Xmx1536m JVM_OPTS: -XX\:MaxHeapSize\=2048m -Xmx1536m
STAGE: Prod # STAGE: Dev
LIBS: NoFree LIBS: NoFree
BUILD_TYPE: Release BUILD_TYPE: Release
branches: branches:
@ -20,6 +20,8 @@ jobs:
- run: - run:
name: Setup env name: Setup env
command: | command: |
if [ $CIRCLE_BRANCH = "master" ]; then STAGE="Prod" else STAGE="Dev"; fi
echo "export STAGE=$STAGE" >> $BASH_ENV
echo "export BUILD_TYPE_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${BUILD_TYPE:0:1}${BUILD_TYPE:1})\"" >> $BASH_ENV echo "export BUILD_TYPE_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${BUILD_TYPE:0:1}${BUILD_TYPE:1})\"" >> $BASH_ENV
echo "export STAGE_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${STAGE:0:1}${STAGE:1})\"" >> $BASH_ENV echo "export STAGE_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${STAGE:0:1}${STAGE:1})\"" >> $BASH_ENV
echo "export LIBS_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${LIBS:0:1}${LIBS:1})\"" >> $BASH_ENV echo "export LIBS_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${LIBS:0:1}${LIBS:1})\"" >> $BASH_ENV