Skip to content

Commit

Permalink
Bump version for procfs to include compatability fix for older kernel…
Browse files Browse the repository at this point in the history
…s. Add trivial smoke test to makefile/travis to try to avoid this kind of failure in future.
  • Loading branch information
ncabatoff committed Aug 7, 2018
1 parent c031e45 commit fc14121
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ install:
- dep ensure

script:
- make style vet test
- make style vet test build integ

after_success:
- docker login -u $DOCKER_USER -p "$DOCKER_PASSWORD"
- test -n "$TRAVIS_TAG" && curl -sL http://git.io/goreleaser | bash
- test -n "$TRAVIS_TAG" && curl -sL http://git.io/goreleaser | bash
6 changes: 3 additions & 3 deletions Gopkg.lock

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

4 changes: 0 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
# unused-packages = true


[[constraint]]
name = "github.com/fatih/structs"
version = "1.0.0"

[[constraint]]
name = "github.com/google/go-cmp"
version = "0.2.0"
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ BIN_DIR ?= $(shell pwd)
DOCKER_IMAGE_NAME ?= ncabatoff/process-exporter
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))

all: format vet test build
all: format vet test build integ

style:
@echo ">> checking code style"
Expand All @@ -27,8 +27,12 @@ build:
@echo ">> building code"
cd cmd/process-exporter; go build -o ../../process-exporter -a -tags netgo

integ:
@echo ">> smoke testing process-exporter"
./process-exporter -config.path packaging/conf/all.yaml -once-to-stdout |grep -q namedprocess_namegroup_write_bytes_total

docker:
@echo ">> building docker image"
@docker build -t "$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" .

.PHONY: all style format test vet build docker
.PHONY: all style format test vet build integ docker

0 comments on commit fc14121

Please sign in to comment.