test/backwards-compatibility: Exclude rc tags from testing (#3787)

Change-Id: Id486709306c5c75a262ea17410ae641be53df8ed

Co-authored-by: Ivan Fraixedes <ivan@fraixed.es>
Co-authored-by: littleskunk <jens.heimbuerge@googlemail.com>
This commit is contained in:
Matt Robinson 2020-03-17 19:12:05 -04:00 committed by GitHub
parent b10b69d9ce
commit bd4982e249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,8 +19,8 @@ RELEASE_DIR="$STORJ_NETWORK_DIR/release"
# and for the current branch code # and for the current branch code
git worktree add -f "$BRANCH_DIR" HEAD git worktree add -f "$BRANCH_DIR" HEAD
latestReleaseTag=$(git describe --tags `git rev-list --tags --max-count=1`) latestReleaseCommit="$(git rev-list --exclude='*rc*' --tags --max-count=1)"
latestReleaseCommit=$(git rev-list -n 1 "$latestReleaseTag") latestReleaseTag=$(git describe --tags "$latestReleaseCommit")
echo "Checking out latest release tag: $latestReleaseTag" echo "Checking out latest release tag: $latestReleaseTag"
git worktree add -f "$RELEASE_DIR" "$latestReleaseCommit" git worktree add -f "$RELEASE_DIR" "$latestReleaseCommit"