mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-17 21:16:33 +02:00
make: Also run tests in subfolders.
This commit is contained in:
parent
9f86c80c33
commit
fde95ddc93
7
Makefile
7
Makefile
|
@ -9,6 +9,7 @@ GOVERSION := $(shell "$(GO)" env GOVERSION | sed "s|go||" )
|
||||||
BINDIR := "$(CURDIR)/bin"
|
BINDIR := "$(CURDIR)/bin"
|
||||||
VERSION := $(shell "$(CURDIR)/scripts/get-version.sh")
|
VERSION := $(shell "$(CURDIR)/scripts/get-version.sh")
|
||||||
TARVERSION := $(shell "$(CURDIR)/scripts/get-version.sh" --tar)
|
TARVERSION := $(shell "$(CURDIR)/scripts/get-version.sh" --tar)
|
||||||
|
PACKAGENAME := github.com/strukturag/nextcloud-spreed-signaling
|
||||||
ifneq ($(VERSION),)
|
ifneq ($(VERSION),)
|
||||||
INTERNALLDFLAGS := -X main.version=$(VERSION)
|
INTERNALLDFLAGS := -X main.version=$(VERSION)
|
||||||
else
|
else
|
||||||
|
@ -73,9 +74,15 @@ fmt: hook
|
||||||
|
|
||||||
vet: common
|
vet: common
|
||||||
$(GO) vet .
|
$(GO) vet .
|
||||||
|
$(GO) vet $(PACKAGENAME)/client
|
||||||
|
$(GO) vet $(PACKAGENAME)/proxy
|
||||||
|
$(GO) vet $(PACKAGENAME)/server
|
||||||
|
|
||||||
test: vet common
|
test: vet common
|
||||||
$(GO) test -v -timeout $(TIMEOUT) $(TESTARGS) .
|
$(GO) test -v -timeout $(TIMEOUT) $(TESTARGS) .
|
||||||
|
$(GO) test -v -timeout $(TIMEOUT) $(TESTARGS) $(PACKAGENAME)/client
|
||||||
|
$(GO) test -v -timeout $(TIMEOUT) $(TESTARGS) $(PACKAGENAME)/proxy
|
||||||
|
$(GO) test -v -timeout $(TIMEOUT) $(TESTARGS) $(PACKAGENAME)/server
|
||||||
|
|
||||||
cover: vet common
|
cover: vet common
|
||||||
rm -f cover.out && \
|
rm -f cover.out && \
|
||||||
|
|
Loading…
Reference in a new issue