Permalink
Browse files

Standardize repo layout with the other Prometheus projects. Add goven…

…dor file and vendored file.
  • Loading branch information...
cagedmantis committed Dec 20, 2016
1 parent 09b2991 commit 60eb354c92461350a3dbe4455436d26dba7071b0
Showing 304 changed files with 127,868 additions and 22 deletions.
View
@@ -1,14 +1,9 @@
language: go
dist: trusty
language: go
go:
- 1.7
install:
- go get github.com/Sirupsen/logrus
- go get github.com/prometheus/client_golang/prometheus
- go get github.com/prometheus/common/log
- go get github.com/prometheus/common/version
script:
- go test ./...
- make
View
@@ -20,10 +20,6 @@ BIN_DIR ?= $(shell pwd)
DOCKER_IMAGE_NAME ?= bind-exporter
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
ifdef DEBUG
bindata_flags = -debug
endif
all: format build test
@@ -55,16 +51,9 @@ docker:
@echo ">> building docker image"
@docker build -t "$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" .
assets:
@echo ">> writing assets"
-@$(GO) get -u github.com/jteeuwen/go-bindata/...
@go-bindata $(bindata_flags) -pkg ui -o ui/bindata.go ui/...
@go-bindata $(bindata_flags) -pkg deftmpl -o template/internal/deftmpl/bindata.go template/default.tmpl
promu:
@GOOS=$(shell uname -s | tr A-Z a-z) \
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) \
$(GO) get -u github.com/prometheus/promu
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) \
$(GO) get -u github.com/prometheus/promu
.PHONY: all style format build test vet assets tarball docker promu
.PHONY: all style format build test vet tarball docker promu

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 60eb354

Please sign in to comment.