aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes 'fish' Ziemke <github@freigeist.org>2016-12-21 12:00:32 +0100
committerJohannes 'fish' Ziemke <github@freigeist.org>2016-12-21 12:00:32 +0100
commit3b1ef14e7b3cced28e40f9c8a6a290f272198a06 (patch)
tree308c3c4944b7ec9ac0026e271d55dfe1976e3d34 /Makefile
parentac406e652e2f7751e2248f030c1b5a5b615efdf4 (diff)
downloadprometheus_node_collector-3b1ef14e7b3cced28e40f9c8a6a290f272198a06.tar.bz2
prometheus_node_collector-3b1ef14e7b3cced28e40f9c8a6a290f272198a06.tar.xz
prometheus_node_collector-3b1ef14e7b3cced28e40f9c8a6a290f272198a06.zip
Add end-to-end tests as default Makefile target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ef94cec..a854240 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ DOCKER_IMAGE_NAME ?= node-exporter
21DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) 21DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
22 22
23 23
24all: format build test 24all: format build test test-e2e
25 25
26style: 26style:
27 @echo ">> checking code style" 27 @echo ">> checking code style"
@@ -31,6 +31,10 @@ test:
31 @echo ">> running tests" 31 @echo ">> running tests"
32 @$(GO) test -short $(pkgs) 32 @$(GO) test -short $(pkgs)
33 33
34test-e2e: build
35 @echo ">> running end-to-end tests"
36 ./end-to-end-test.sh
37
34format: 38format:
35 @echo ">> formatting code" 39 @echo ">> formatting code"
36 @$(GO) fmt $(pkgs) 40 @$(GO) fmt $(pkgs)
@@ -57,4 +61,4 @@ promu:
57 $(GO) get -u github.com/prometheus/promu 61 $(GO) get -u github.com/prometheus/promu
58 62
59 63
60.PHONY: all style format build test vet tarball docker promu 64.PHONY: all style format build test test-e2e vet tarball docker promu