You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
infer_clone/scripts/create_annotations_release.sh

28 lines
797 B

#!/bin/bash
# Copyright (c) 2017 - present Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
# create a release of the Infer Java annotations to send to oss.sonatype.org
set -x
set -e
REMOTE="$( git remote get-url origin )"
OSS_REMOTE=https://github.com/facebook/infer.git
# check if we're in the open-source repo
if ! git remote get-url origin | grep -q "\bgithub\.com\b"; then
echo "Please run this script from the Git repo for open-source Infer!"
exit 1
fi
echo "Starting release..."
mvn -e release:clean release:prepare
mvn -e release:perform -DpushChanges=false