-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Script to partially automate release. * Bump version.
- Loading branch information
1 parent
0fb1778
commit d6b60a9
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script is used to partially automate the release process. You still need | ||
# to update the version number in `pom.xml`. | ||
|
||
set -e | ||
|
||
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
cd "$script_dir" | ||
|
||
git checkout master | ||
# Make sure code builds | ||
mvn package | ||
# Make sure all files have licenses | ||
mvn license:update-file-header | ||
# Make sure code is formatted consistently | ||
mvn com.spotify.fmt:fmt-maven-plugin:format | ||
# Generate Javadocs | ||
mvn javadoc:javadoc | ||
git add src | ||
git commit -allow-empty -m "Release commit." | ||
|
||
# Update the Javadocs on the website | ||
git checkout gh-pages | ||
rm -rf apidocs | ||
cp -r target/site/apidocs . | ||
git add apidocs | ||
git commit –allow-empty -m "Update Javadocs." | ||
git push | ||
git checkout master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters