Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v1.23.2
  • v1.23.1
  • v1.23.0
  • v1.22.0
  • v1.21.1
  • v1.21.0
  • v1.20.3
  • v1.20.2
  • v1.20.1
  • v1.20.0
  • v1.19.4
  • v1.19.3
  • v1.19.2
  • v1.19.1
  • v1.19.0
  • v1.18.2
  • v1.18.1
  • v1.18.0
  • v1.17.0
  • v1.16.1
21 results

Makefile

Blame
  • Makefile 694 B
    # Project packages.
    PACKAGES=$(shell go list ./...)
    
    # Flags passed to `go test`
    BUILDFLAGS ?= 
    TESTFLAGS ?= 
    
    .PHONY: all build test coverage
    .DEFAULT: all
    
    all: build
    
    build: ## no binaries to build, so just check compilation suceeds
    	go build ${BUILDFLAGS} ./...
    
    test: ## run tests
    	go test ${TESTFLAGS} ./...
    
    coverage: ## generate coverprofiles from the unit tests
    	rm -f coverage.txt
    	go test ${TESTFLAGS} -cover -coverprofile=cover.out ./...
    
    .PHONY: help
    help:
    	@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n  make \033[36m\033[0m\n"} /^[a-zA-Z_\/%-]+:.*?##/ { printf "  \033[36m%-27s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)