Skip to content

Commit

Permalink
Add an option which allows skipping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dadoonet committed Jul 10, 2017
1 parent 7a3f306 commit ec72e0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,5 @@ The release script will:

You will be guided through all the steps.

You can add some maven options while executing the release script such as `-DskipTests` if you want to skip
the tests while building the release.
6 changes: 4 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ promptyn () {
test_against_version () {
if [ -z "$1" ]; then
echo "Building and testing the release..."
mvn clean install -Prelease >> /tmp/fscrawler-${RELEASE_VERSION}.log
mvn clean install -Prelease ${MAVEN_OPTION} >> /tmp/fscrawler-${RELEASE_VERSION}.log
else
echo "Building and testing against elasticsearch $1.x..."
mvn clean verify -Pes-$1x >> /tmp/fscrawler-${RELEASE_VERSION}.log
mvn clean verify -Pes-$1x ${MAVEN_OPTION} >> /tmp/fscrawler-${RELEASE_VERSION}.log
fi

if [ $? -ne 0 ]
Expand Down Expand Up @@ -94,6 +94,8 @@ NEXT_VERSION_P=`increment_version ${RELEASE_VERSION}`

NEXT_VERSION=$(readvalue "Enter the next snapshot version" ${NEXT_VERSION_P}-SNAPSHOT)

MAVEN_OPTION=$(readvalue "Enter any maven option you want to add" "")

RELEASE_BRANCH=release-${RELEASE_VERSION}

echo "STARTING LOGS FOR $RELEASE_VERSION..." > /tmp/fscrawler-${RELEASE_VERSION}.log
Expand Down

0 comments on commit ec72e0b

Please sign in to comment.