Skip to content

Commit

Permalink
Makefile: move sanity check after the release when the versions are p…
Browse files Browse the repository at this point in the history
…ublished
  • Loading branch information
matthewmueller committed Jan 28, 2023
1 parent 4f95221 commit b318043
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,6 @@ publish:
@ echo "Checking for unpushed commits..." && git fetch
@ test "" = "`git cherry`" || (echo "Refusing to publish with unpushed commits" && false)

@ echo "Running sanity tests..."
@ go test --ldflags="-s -w -X 'github.com/livebud/bud/internal/versions.Bud=$(BUD_VERSION)'" \
./internal/cli/create_test.go -run "TestReleaseVersionOk"

@ echo "Building binaries into ./release..."
@ $(MAKE) --no-print-directory build
@ go run scripts/generate-changelog/main.go "v$(BUD_VERSION)" > release/changelog.md
Expand Down Expand Up @@ -248,6 +244,10 @@ publish:
@ git push origin main "v$(BUD_VERSION)"
@ gh release create --notes-file=release/changelog.md "v$(BUD_VERSION)" release/bud_* release/checksums.txt

@ echo "Running post-release sanity test..."
@ go test --ldflags="-s -w -X 'github.com/livebud/bud/internal/versions.Bud=$(BUD_VERSION)'" \
./internal/cli/create_test.go -run "TestReleaseVersionOk"

##
# E2E
##
Expand Down

0 comments on commit b318043

Please sign in to comment.