Skip to content

Commit

Permalink
2.x: safeguard against building with v1 tags (#5219)
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Mar 24, 2017
1 parent 1b60b12 commit 7ea72d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gradle/buildViaTravis.sh
@@ -1,6 +1,13 @@
#!/bin/bash
# This script will build the project.

buildTag="$TRAVIS_TAG"

if [ "$buildTag" != "" ] && [ "${buildTag:0:3}" != "v2." ]; then
echo -e "Wrong tag on the 2.x brach: $buildTag : build stopped"
exit 1
fi

GRADLE_OPTS=-Xmx832m

if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
Expand Down

0 comments on commit 7ea72d5

Please sign in to comment.