Modernize release script:

- making sure the DRY_RUN mode can finish e2e, so e.g. commits to
local copy of repository are OK in dry-run (while git pushes are NOT).
  - better interaction with ./test_lib.sh script.
  - more consistent logging
  - bringing back s390x architecture that on go 1.14.3 seems to work as
expected.
This commit is contained in:
Piotr Tabor
2021-01-21 07:35:26 +01:00
parent 5dcd459ae9
commit 598ca6caab
9 changed files with 104 additions and 82 deletions

View File

@@ -24,7 +24,6 @@ function setup_env {
fi
pushd "${proj}" >/dev/null
run git checkout master
run git fetch --all
git_assert_branch_in_sync || exit 2
run git checkout "${ver}"
@@ -76,8 +75,7 @@ function main {
if [ ${GOOS} == "linux" ]; then
TARGET_ARCHS+=("arm64")
TARGET_ARCHS+=("ppc64le")
# TODO: Reenable when https://github.com/etcd-io/etcd/issues/12496 is fixed.
# TARGET_ARCHS+=("s390x")
TARGET_ARCHS+=("s390x")
fi
for TARGET_ARCH in "${TARGET_ARCHS[@]}"; do