Added 'make tests' target to makefile and call it before 'make publish'
This commit is contained in:
1 parent
70c8b2b65c
commit
c4980630a1
1 file changed
+5
-1
@@ -35,7 +35,11 @@ $(WEAVEDNS_EXPORT): weavedns/Dockerfile $(WEAVEDNS_EXE)
|
||||
$(SUDO) docker build -t $(WEAVEDNS_IMAGE) weavedns
|
||||
$(SUDO) docker save $(WEAVEDNS_IMAGE):latest > $@
|
||||
|
||||
publish: $(WEAVER_EXPORT)
|
||||
# Add more directories in here as more tests are created
|
||||
tests:
|
||||
cd nameserver; go test
|
||||
|
||||
publish: $(WEAVER_EXPORT) tests
|
||||
$(SUDO) docker tag $(WEAVER_IMAGE) $(WEAVER_IMAGE):git-`git rev-parse --short=12 HEAD`
|
||||
$(SUDO) docker push $(WEAVER_IMAGE):latest
|
||||
$(SUDO) docker push $(WEAVER_IMAGE):git-`git rev-parse --short=12 HEAD`
|
||||
|
||||
Reference in new issue
Block a user