diff options
author | Johannes 'fish' Ziemke <github@freigeist.org> | 2016-12-21 12:00:32 +0100 |
---|---|---|
committer | Johannes 'fish' Ziemke <github@freigeist.org> | 2016-12-21 12:00:32 +0100 |
commit | 3b1ef14e7b3cced28e40f9c8a6a290f272198a06 (patch) | |
tree | 308c3c4944b7ec9ac0026e271d55dfe1976e3d34 | |
parent | ac406e652e2f7751e2248f030c1b5a5b615efdf4 (diff) | |
download | prometheus_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
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -21,7 +21,7 @@ DOCKER_IMAGE_NAME ?= node-exporter | |||
21 | DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) | 21 | DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) |
22 | 22 | ||
23 | 23 | ||
24 | all: format build test | 24 | all: format build test test-e2e |
25 | 25 | ||
26 | style: | 26 | style: |
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 | ||
34 | test-e2e: build | ||
35 | @echo ">> running end-to-end tests" | ||
36 | ./end-to-end-test.sh | ||
37 | |||
34 | format: | 38 | format: |
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 |