Skip to content

Commit

Permalink
Fix release script for infer-annotation JAR
Browse files Browse the repository at this point in the history
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
  • Loading branch information
artempyanykh authored and facebook-github-bot committed Jul 15, 2019
1 parent 128f379 commit 21734fe
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/create_annotations_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 )

0 comments on commit 21734fe

Please sign in to comment.