system-tests: install swag only if needed

This commit is contained in:
André Roth
2024-10-02 20:26:54 +02:00
parent c6c607a406
commit 997ffe9c31
+1 -1
View File
@@ -70,7 +70,7 @@ docker-test: ## Run system tests
@rm -f aptly.test
go generate
# install and initialize swagger
go install github.com/swaggo/swag/cmd/swag@latest
test -f $(BINPATH)/swag || go install github.com/swaggo/swag/cmd/swag@latest
PATH=$(BINPATH)/:$(PATH) swag init
# build coverage binary
go test -v -coverpkg="./..." -c -tags testruncli