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
This commit is contained in:
Pascal Hartig
2018-09-19 05:05:56 -07:00
committed by Facebook Github Bot
parent ab00f3360e
commit 5aa14626f8
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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