Separate test dependency install

Make builds fast again!

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
remotes/KirillovDenis/release/v0.21.1
Stanislav Bogatyrev 2020-10-16 15:45:29 +03:00 committed by Stanislav Bogatyrev
parent b7dfc73bbc
commit f8ac62ffae
1 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,8 @@ dep:
CGO_ENABLED=0 \
GO111MODULE=on \
go mod download && echo OK
test_dep:
@printf "⇒ Install test requirements: "
CGO_ENABLED=0 \
GO111MODULE=on \
@ -96,7 +98,7 @@ imports:
@GO111MODULE=on goimports -w cmd/ pkg/ misc/
# Run Unit Test with go test
test:
test: test_dep
@echo "⇒ Runnning go test"
@GO111MODULE=on go test ./...