From 5aa14626f841ee03970d7e595eedeb36575d4bec Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 19 Sep 2018 05:05:56 -0700 Subject: [PATCH] Make build scripts less verbose (#274) Summary: `--info` was only useful while debugging the initial setup. This also makes skipping non-snapshot builds no longer fatal. Pull Request resolved: https://github.com/facebook/flipper/pull/274 Reviewed By: jknoxville Differential Revision: D9934199 Pulled By: passy fbshipit-source-id: 051cdacc63a2480f7670d714aaf8ef7d0df11df7 --- scripts/publish-android-release.sh | 2 +- scripts/publish-android-snapshot.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/publish-android-release.sh b/scripts/publish-android-release.sh index 179ad6964..870d2d75d 100755 --- a/scripts/publish-android-release.sh +++ b/scripts/publish-android-release.sh @@ -12,5 +12,5 @@ elif [ "$IS_SNAPSHOT" != "" ]; then exit 1 else openssl aes-256-cbc -d -in scripts/bintray-publish-keys.enc -k "$ANDROID_PUBLISH_KEY" >> "$BASEDIR/gradle.properties" - "$BASEDIR"/gradlew bintrayUpload --info -PdryRun=false + "$BASEDIR"/gradlew bintrayUpload --quiet -PdryRun=false fi diff --git a/scripts/publish-android-snapshot.sh b/scripts/publish-android-snapshot.sh index 179ad6964..7023f5aaf 100755 --- a/scripts/publish-android-snapshot.sh +++ b/scripts/publish-android-snapshot.sh @@ -7,10 +7,10 @@ IS_SNAPSHOT="$(grep 'VERSION_NAME=[0-9\.]\+-SNAPSHOT' "$BASEDIR/gradle.propertie if [ "$ANDROID_PUBLISH_KEY" == "" ]; then echo "No encryption key. Skipping snapshot deployment." exit -elif [ "$IS_SNAPSHOT" != "" ]; then - echo "Build appears to be a SNAPSHOT release, but this is a script for building stable releases. Skipping ..." +elif [ "$IS_SNAPSHOT" == "" ]; then + echo "Skipping build. Given build doesn't appear to be a SNAPSHOT release." exit 1 else - openssl aes-256-cbc -d -in scripts/bintray-publish-keys.enc -k "$ANDROID_PUBLISH_KEY" >> "$BASEDIR/gradle.properties" - "$BASEDIR"/gradlew bintrayUpload --info -PdryRun=false + openssl aes-256-cbc -d -in scripts/gradle-publish-keys.enc -k "$ANDROID_PUBLISH_KEY" >> "$BASEDIR/gradle.properties" + "$BASEDIR"/gradlew uploadArchives --quiet fi