Skip to content

Commit

Permalink
add build reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
schallert committed Mar 22, 2019
1 parent 8f87089 commit 63a56cf
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 99 deletions.
132 changes: 56 additions & 76 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,20 @@ version = "^2.7.0"
[[override]]
name = "github.com/opentracing-contrib/go-stdlib"
revision = "77df8e8e70b403c6b13c0fffaa4867c9044ff4e9"

[[constraint]]
name = "github.com/uber-go/tally"
version = "3.3.8"

[[override]]
name = "github.com/m3db/prometheus_client_golang"
revision = "8ae269d24972b8695572fa6b2e3718b5ea82d6b4"
[[override]]
name = "github.com/m3db/prometheus_client_model"
revision = "8b2299a4bf7d7fc10835527021716d4b4a6e8700"
[[override]]
name = "github.com/m3db/prometheus_common"
revision = "25aaa3dff79bb48116615ebe1dea6a494b74ce77"
[[override]]
name = "github.com/m3db/prometheus_procfs"
revision = "1878d9fbb537119d24b21ca07effd591627cd160"
16 changes: 10 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ PROJECT_NAME := m3db-operator
OUTPUT_DIR := out
DOCS_OUT_DIR := site
DEP_VERSION := v0.5.0
BUILD_SETTINGS := GOOS=linux GOARCH=amd64 CGO_ENABLED=0
ifeq ($(shell uname), Darwin)
BUILD_SETTINGS := GOOS=darwin GOARCH=amd64 CGO_ENABLED=0
endif
.DEFAULT_GOAL := all

SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
Expand Down Expand Up @@ -59,7 +55,9 @@ mocks_rules_dir := generated/mocks
auto_gen := scripts/auto-gen.sh
GOMETALINT_VERSION := v2.0.5

LINUX_AMD64_ENV := GOOS=linux GOARCH=amd64 CGO_ENABLED=0
LINUX_AMD64_ENV := GOOS=linux GOARCH=amd64 CGO_ENABLED=0
GO_BUILD_LDFLAGS_CMD := $(abspath ./.ci/go-build-ldflags.sh) $(package_root)
GO_BUILD_LDFLAGS := $(shell $(GO_BUILD_LDFLAGS_CMD))

CMDS := \
docgen \
Expand All @@ -75,10 +73,16 @@ define CMD_RULES
.PHONY: $(CMD)
$(CMD)-no-deps:
@echo "--- $(CMD)"
go build -o $(OUTPUT_DIR)/$(CMD) ./cmd/$(CMD)
go build -ldflags '$(GO_BUILD_LDFLAGS)' -o $(OUTPUT_DIR)/$(CMD) ./cmd/$(CMD)

$(CMD): dep-ensure $(CMD)-no-deps

$(CMD)-linux-amd64-no-deps:
$(LINUX_AMD64_ENV) make $(CMD)-no-deps

$(CMD)-linux-amd64:
$(LINUX_AMD64_ENV) make $(CMD)

endef

$(foreach CMD,$(CMDS),$(eval $(CMD_RULES)))
Expand Down
Loading

0 comments on commit 63a56cf

Please sign in to comment.