Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (30 sloc) 895 Bytes
# where to rsync builds
DIST?=dist/publish
DISTSUB=2019/04
test: .PHONY
go test -v $(shell go list ./... | grep -v /vendor/)
testrace: .PHONY
go test -v -race $(shell go list ./... | grep -v /vendor/)
docker-test: .PHONY
# test that we don't have missing dependencies
docker run --rm -v `pwd`:/go/src/github.com/abh/geodns \
-v /opt/local/share/GeoIP:/opt/local/share/GeoIP \
golang:1.10.1-alpine3.7 \
go test ./...
devel:
go build -tags devel
bench:
go test -check.b -check.bmem
TARS=$(wildcard dist/geodns-*-*.tar)
push: $(TARS) tmp-install.sh
rsync --exclude publish tmp-install.sh $(TARS) $(DIST)/$(DISTSUB)/
$(DIST)/push
builds: linux-build linux-build-i386 freebsd-build push
linux-build:
GOOS=linux GOARCH=amd64 ./build
linux-build-i386:
GOOS=linux GOARCH=386 ./build
freebsd-build:
GOOS=freebsd GOARCH=amd64 ./build
GOOS=freebsd GOARCH=386 ./build
.PHONY:
You can’t perform that action at this time.