diff --git a/.mold.yml b/.mold.yml index 87aa7abe..aed1280c 100644 --- a/.mold.yml +++ b/.mold.yml @@ -3,7 +3,11 @@ build: cache: true commands: - apt-get update + - apt-get install -y zip + - wget https://releases.hashicorp.com/consul/1.4.0/consul_1.4.0_linux_amd64.zip -P /tmp + - unzip -o /tmp/consul_1.4.0_linux_amd64.zip -d /bin - go get -u github.com/mitchellh/gox + - make test - make release workdir: "/go/src/github.com/d3sw/replicator" environment: [] diff --git a/Makefile b/Makefile index 1140c5e3..ad872fa9 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ lint: @echo "==> Running $@..." @golint ./... | grep -v vendor | tee /dev/stderr -test: fmt lint vet +test: @echo "==> Running $@..." @go test -v -tags "$(BUILDTAGS) cgo" $(shell go list ./... | grep -v vendor) @@ -43,7 +43,7 @@ vet: echo "and fix them if necessary before submitting the code for reviewal."; \ fi -deps: +deps: fmt lint vet @echo "==> Running $@..." @dep ensure