diff --git a/.travis.yml b/.travis.yml index c60aca4..4f2ee4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,2 +1 @@ language: go -script: sudo -E go test -v github.com/vishvananda/netlink && sudo -E go test -v github.com/vishvananda/netlink/nl diff --git a/Makefile b/Makefile index 00ace3e..0a7e09d 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ all: test .PHONY: $(call testdirs,$(DIRS)) $(call testdirs,$(DIRS)): - sudo -E go test -v github.com/vishvananda/netlink/$@ + ! gofmt -l $@*.go | grep '' + go test -v github.com/vishvananda/netlink/$@ test: $(call testdirs,$(DIRS))