Permalink
Browse files

little release bash script

  • Loading branch information...
Klaus Pfeiffer
Klaus Pfeiffer committed Apr 22, 2018
1 parent e13eb37 commit bb98b7221f6bc839086b8ba1383fa11ed68210a8
Showing with 17 additions and 0 deletions.
  1. +17 −0 release.sh
View
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Switch to script directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${DIR}"
set +x # Disable debugging
set -u # Stop on uninitialised variable
set -e # Stop on first non-null return value
echo " * Perform unit tests..."
mvn test
echo " * Prepare the release"
mvn --batch-mode release:prepare -Darguments="-DskipTests"
echo " * Prepare the release"
mvn release:perform -Darguments="-DskipTests"

0 comments on commit bb98b72

Please sign in to comment.