forked from TrueCloudLab/frostfs-node
Separate test dependency install
Make builds fast again! Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
b7dfc73bbc
commit
f8ac62ffae
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -48,6 +48,8 @@ dep:
|
||||||
CGO_ENABLED=0 \
|
CGO_ENABLED=0 \
|
||||||
GO111MODULE=on \
|
GO111MODULE=on \
|
||||||
go mod download && echo OK
|
go mod download && echo OK
|
||||||
|
|
||||||
|
test_dep:
|
||||||
@printf "⇒ Install test requirements: "
|
@printf "⇒ Install test requirements: "
|
||||||
CGO_ENABLED=0 \
|
CGO_ENABLED=0 \
|
||||||
GO111MODULE=on \
|
GO111MODULE=on \
|
||||||
|
@ -96,7 +98,7 @@ imports:
|
||||||
@GO111MODULE=on goimports -w cmd/ pkg/ misc/
|
@GO111MODULE=on goimports -w cmd/ pkg/ misc/
|
||||||
|
|
||||||
# Run Unit Test with go test
|
# Run Unit Test with go test
|
||||||
test:
|
test: test_dep
|
||||||
@echo "⇒ Runnning go test"
|
@echo "⇒ Runnning go test"
|
||||||
@GO111MODULE=on go test ./...
|
@GO111MODULE=on go test ./...
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue