mirror of
https://github.com/NiciDieNase/chaosflix
synced 2025-02-17 05:28:24 +00:00
CircleCI: move sign-config to env
This commit is contained in:
parent
1fe3b68517
commit
09af410fb7
1 changed files with 4 additions and 3 deletions
|
@ -9,6 +9,7 @@ jobs:
|
|||
FLAVOR1: Prod
|
||||
FLAVOR2: NoFree
|
||||
BUILD_TYPE: Release
|
||||
SIGN_CONFIG: "-PchaosflixKeystore=\$KEYSTORE -PchaosflixStorePassword=\$KEYSTORE_PASSWORD -PchaosflixKeyName=\$KEY_NAME -PchaosflixKeyPassword=\$KEYSTORE_PASSWORD"
|
||||
branches:
|
||||
only:
|
||||
- circleCI
|
||||
|
@ -24,16 +25,16 @@ jobs:
|
|||
echo "export FLAVOR2_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${FLAVOR2:0:1}${FLAVOR2:1})\"" >> $BASH_ENV
|
||||
echo "$ENCODED_KEYSTORE" | base64 --decode >> ${HOME}/code/keystore.jks
|
||||
echo 'export KEYSTORE=${HOME}/code/keystore.jks' >> $BASH_ENV
|
||||
# echo "export SIGN_CONFIG=\"-PchaosflixKeystore=$KEYSTORE -PchaosflixStorePassword=$KEYSTORE_PASSWORD -PchaosflixKeyName=$KEY_NAME -PchaosflixKeyPassword=$KEYSTORE_PASSWORD\""
|
||||
# echo "export SIGN_CONFIG=\"-PchaosflixKeystore=\$KEYSTORE -PchaosflixStorePassword=\$KEYSTORE_PASSWORD -PchaosflixKeyName=\$KEY_NAME -PchaosflixKeyPassword=\$KEYSTORE_PASSWORD\""
|
||||
- run:
|
||||
name: Download Dependencies
|
||||
command: ./gradlew androidDependencies
|
||||
- run:
|
||||
name: Build Touch
|
||||
command: ./gradlew -PchaosflixKeystore=$KEYSTORE -PchaosflixStorePassword=$KEYSTORE_PASSWORD -PchaosflixKeyName=$KEY_NAME -PchaosflixKeyPassword=$KEYSTORE_PASSWORD touch:assemble$FLAVOR1_LOWER$FLAVOR2$BUILD_TYPE
|
||||
command: ./gradlew $SIGN_CONFIG touch:assemble$FLAVOR1_LOWER$FLAVOR2$BUILD_TYPE
|
||||
- run:
|
||||
name: Build Leanback
|
||||
command: ./gradlew -PchaosflixKeystore=$KEYSTORE -PchaosflixStorePassword=$KEYSTORE_PASSWORD -PchaosflixKeyName=$KEY_NAME -PchaosflixKeyPassword=$KEYSTORE_PASSWORD Leanback:assemble$FLAVOR1_LOWER$BUILD_TYPE
|
||||
command: ./gradlew $SIGN_CONFIG Leanback:assemble$FLAVOR1_LOWER$BUILD_TYPE
|
||||
- save_cache:
|
||||
paths:
|
||||
- ~/.gradle
|
||||
|
|
Loading…
Add table
Reference in a new issue