Fix release script for infer-annotation JAR

Summary:
There were issues with signing with newer versions of gpg.
Also the script required to be run from the infer/annotations
which is somewhat inconvenient.

Reviewed By: jvillard

Differential Revision: D16259704

fbshipit-source-id: 84354d592
master
Artem Pianykh 5 years ago committed by Facebook Github Bot
parent 128f37985d
commit 21734fe15e

@ -10,8 +10,12 @@
set -x
set -e
REMOTE="$( git remote get-url origin )"
OSS_REMOTE=https://github.com/facebook/infer.git
# This fixes 'gpg: signing failed: Inappropriate ioctl for device' error
# during signing
export GPG_TTY=$(tty)
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOTDIR="$( cd $DIR/.. && pwd)"
# check if we're in the open-source repo
if ! git remote get-url origin | grep -q "\bgithub\.com\b"; then
@ -21,5 +25,6 @@ fi
echo "Starting release..."
mvn -e release:clean release:prepare
mvn -e release:perform -DpushChanges=false
( cd "$ROOTDIR/infer/annotations" && \
mvn -e release:clean release:prepare && \
mvn -e release:perform -DpushChanges=false )

Loading…
Cancel
Save