mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Updating travis yaml file to: * Force IPv6 to work in their VM environment * Enable docker (requires VM environment and sudo) * Run kubernetes integration tests in Travis
30 lines
444 B
Makefile
30 lines
444 B
Makefile
#BUILD_VERBOSE :=
|
|
BUILD_VERBOSE := -v
|
|
|
|
TEST_VERBOSE :=
|
|
TEST_VERBOSE := -v
|
|
|
|
all:
|
|
go build $(BUILD_VERBOSE)
|
|
|
|
.PHONY: docker
|
|
docker:
|
|
GOOS=linux go build -a -tags netgo -installsuffix netgo
|
|
docker build -t $$USER/coredns .
|
|
|
|
.PHONY: deps
|
|
deps:
|
|
go get ${BUILD_VERBOSE}
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test $(TEST_VERBOSE) ./...
|
|
|
|
.PHONY: testk8s
|
|
testk8s:
|
|
go test $(TEST_VERBOSE) -tags=k8s -run 'TestK8sIntegration' ./test
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
go clean
|