mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-27 00:04:15 -04:00 
			
		
		
		
	Add github testing workflow, simplify the Makefile because that was complex because of Travis. Remove the fuzzing, needs to be re-added when that works properly with go modules (it has been disabled for quite some time). Multiple builds and files have been added so these tests can all run in parallel. Our testing now tests a couple of minutes, the codeql is by far the more expensive. Move metric's naming test to test/presubmit_test.go Add longer sleep in the TestAutoAXFR. Bye bye travis! Closes: #4266 Signed-off-by: Miek Gieben <miek@miek.nl>
		
			
				
	
	
		
			36 lines
		
	
	
		
			726 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			726 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # Makefile for building CoreDNS
 | |
| GITCOMMIT:=$(shell git describe --dirty --always)
 | |
| BINARY:=coredns
 | |
| SYSTEM:=
 | |
| CHECKS:=check
 | |
| BUILDOPTS:=-v
 | |
| GOPATH?=$(HOME)/go
 | |
| MAKEPWD:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
 | |
| CGO_ENABLED:=0
 | |
| 
 | |
| .PHONY: all
 | |
| all: coredns
 | |
| 
 | |
| .PHONY: coredns
 | |
| coredns: $(CHECKS)
 | |
| 	CGO_ENABLED=$(CGO_ENABLED) $(SYSTEM) go build $(BUILDOPTS) -ldflags="-s -w -X github.com/coredns/coredns/coremain.GitCommit=$(GITCOMMIT)" -o $(BINARY)
 | |
| 
 | |
| .PHONY: check
 | |
| check: core/plugin/zplugin.go core/dnsserver/zdirectives.go
 | |
| 
 | |
| core/plugin/zplugin.go core/dnsserver/zdirectives.go: plugin.cfg
 | |
| 	go generate coredns.go
 | |
| 
 | |
| .PHONY: gen
 | |
| gen:
 | |
| 	go generate coredns.go
 | |
| 
 | |
| .PHONY: pb
 | |
| pb:
 | |
| 	$(MAKE) -C pb
 | |
| 
 | |
| .PHONY: clean
 | |
| clean:
 | |
| 	go clean
 | |
| 	rm -f coredns
 |