Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature/distro install tests #7

Merged
merged 9 commits into from
Oct 16, 2023
Prev Previous commit
Next Next commit
feat: "make dist" runs package installation tests
  • Loading branch information
thediveo committed Sep 22, 2023
commit 83a50af8382c68c7ffb9550a386338b31179ddc7
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -8,9 +8,16 @@ help: ## list available targets
@# Derived from Gomega's Makefile (github.com/onsi/gomega) under MIT License
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'

dist: ## build snapshot cshargextcap binary packages+archives in dist/
dist: ## build snapshot cshargextcap binary packages+archives in dist/ and test them
# gorelease will run go generate anyway
@scripts/goreleaser.sh --snapshot --clean
for distro in alpine debian fedora ubuntu; do \
( \
echo "== test package installation on $${distro} ==" \
&& cd packaging/linux/test/$${distro} \
&& ./test.sh \
) || exit 1; \
done
@ls -lh dist/cshargextcap_*
@echo "🏁 done"