File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,10 @@ test-e2e:
179179test-e2e-release :
180180 PASSES=" build release e2e" ./test.sh $(GO_TEST_FLAGS )
181181
182+ .PHONY : test-release
183+ test-release :
184+ PASSES=" release_tests" ./test.sh $(GO_TEST_FLAGS )
185+
182186ensure-docker-test-image-exists :
183187 make pull-docker-test || ( echo " WARNING: Container Image not found in registry, building locally" ; make build-docker-test )
184188
Original file line number Diff line number Diff line change @@ -687,6 +687,34 @@ function release_pass {
687687 mv /tmp/etcd ./bin/etcd-last-release
688688}
689689
690+ function release_tests_pass {
691+ if [ -z " ${VERSION:- } " ]; then
692+ VERSION=$( go list -m go.etcd.io/etcd/api/v3 2> /dev/null | \
693+ awk ' {split(substr($2,2), a, "."); print a[1]"."a[2]".99"}' )
694+ fi
695+
696+ if [ -n " ${CI:- } " ]; then
697+ git config user.email " prow@etcd.io"
698+ git config user.name " Prow"
699+
700+ gpg --batch --gen-key << EOF
701+ %no-protection
702+ Key-Type: 1
703+ Key-Length: 2048
704+ Subkey-Type: 1
705+ Subkey-Length: 2048
706+ Name-Real: Prow
707+ Name-Email: prow@etcd.io
708+ Expire-Date: 0
709+ EOF
710+
711+ git remote add origin https://github.com/etcd-io/etcd.git
712+ fi
713+
714+ DRY_RUN=true run " ${ETCD_ROOT_DIR} /scripts/release.sh" --no-upload --no-docker-push --no-gh-release --in-place " ${VERSION} "
715+ VERSION=" ${VERSION} " run " ${ETCD_ROOT_DIR} /scripts/test_images.sh"
716+ }
717+
690718function mod_tidy_for_module {
691719 # Watch for upstream solution: https://github.com/golang/go/issues/27005
692720 local tmpModDir
You can’t perform that action at this time.
0 commit comments