Add cross-package dep check test

This commit is contained in:
Denis Arh
2019-05-13 08:57:18 +02:00
parent 717357d1cb
commit 5b28c26eba
+6
View File
@@ -98,6 +98,12 @@ test.store: $(GOTEST)
$(GOTEST) -covermode count -coverprofile .cover.out -v ./internal/store/...
$(GO) tool cover -func=.cover.out | grep --color "^\|[^0-9]0.0%"
test.cross-dep:
# Outputs cross-package imports that should not be there.
grep -rE "crust/(compose|messaging)/" system || exit 0
grep -rE "crust/(system|messaging)/" compose || exit 0
grep -rE "crust/(system|compose)/" messaging || exit 0
vet:
$(GO) vet ./...