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.
26 lines
678 B
26 lines
678 B
#!/bin/bash
|
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
# 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
|