github.com/mrgossett/heapster@v0.18.2/Makefile (about)

     1  all: build
     2  
     3  TAG = v0.18.2
     4  PREFIX = gcr.io/google_containers
     5  FLAGS = 
     6  
     7  deps:
     8  	go get github.com/tools/godep
     9  
    10  build: clean deps
    11  	GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build ./...
    12  	GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build
    13  
    14  sanitize:
    15  	hooks/check_boilerplate.sh
    16  	hooks/check_gofmt.sh
    17  	hooks/run_vet.sh
    18  	hooks/check_generate.sh
    19  
    20  test-unit: clean deps sanitize build
    21  	GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go test --test.short -race ./... $(FLAGS)
    22  
    23  test-unit-cov: clean deps sanitize build
    24  	hooks/coverage.sh
    25  
    26  test-integration: clean deps build
    27  	godep go test -v --timeout=30m ./integration/... --vmodule=*=2 $(FLAGS)
    28  
    29  container: build
    30  	cp ./heapster ./deploy/docker/heapster
    31  	docker build -t $(PREFIX)/heapster:$(TAG) ./deploy/docker/
    32  
    33  grafana:
    34  	docker build -t $(PREFIX)/heapster_grafana:$(TAG) ./grafana/
    35  
    36  influxdb:
    37  	docker build -t $(PREFIX)/heapster_influxdb:$(TAG) ./influxdb/
    38  
    39  clean:
    40  	rm -f heapster
    41  	rm -f ./deploy/docker/heapster
    42  
    43  .PHONY: all deps build sanitize test-unit test-unit-cov test-integration container grafana influxdb clean