Example of how you'd run the tests:
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.8 \
go get -u github.com/golang/dep/cmd/dep && make
BINARY := service-versions # This is whatever you want to name the binary | |
all: build | |
deps: | |
dep ensure | |
build: deps | |
go build -o $(BINARY) | |
test: deps | |
go test -v $$(go list ./... | grep -v vendor) | |
bench: deps | |
go test -test.bench=".*" -v $$(go list ./... | grep -v vendor) |