Skip to content

Commit

Permalink
Merge 1049534 into 6045e41
Browse files Browse the repository at this point in the history
  • Loading branch information
heuermh committed May 22, 2019
2 parents 6045e41 + 1049534 commit 651ddf9
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions scripts/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ branch=$(git status -bs | awk '{ print $2 }' | awk -F'.' '{ print $1 }' | head -
mvn com.github.heuermh.maven.plugin.changes:github-changes-maven-plugin:1.0:github-changes -DmilestoneId=${milestone}
git commit -a -m "Modifying changelog."

# update R version
sed -i -e "s/Version: [0-9.]*/Version: $1/g" adam-r/bdgenomics.adam/DESCRIPTION
git commit -a -m "Bumping R version to $1."

commit=$(git log --pretty=format:"%H" | head -n 1)
echo "releasing from ${commit} on branch ${branch}"

Expand Down Expand Up @@ -92,8 +96,26 @@ if [ $? != 0 ]; then
exit 1
fi

# publish docs
./scripts/publish-scaladoc.sh ${release}
# do spark 2, scala 2.12 release
git checkout -b maint_spark2_2.12-${release} ${branch}

git commit -a -m "Modifying pom.xml files for Spark 2, Scala 2.12 release."
./scripts/move_to_scala_2.12.sh
mvn --batch-mode \
-P distribution \
-Dresume=false \
-Dtag=adam-parent-spark2_2.12-${release} \
-DreleaseVersion=${release} \
-DdevelopmentVersion=${devel} \
-DbranchName=adam-spark2_2.12-${release} \
release:clean \
release:prepare \
release:perform

if [ $? != 0 ]; then
echo "Releasing Spark 2, Scala 2.12 version failed."
exit 1
fi

if [ $branch = "master" ]; then
# if original branch was master, update versions on original branch
Expand Down

0 comments on commit 651ddf9

Please sign in to comment.