From c38ca4270f7a51829e53c8efcaebd9f4f59bc49c Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 24 Sep 2018 20:41:49 +0300 Subject: [PATCH] Run controller tests only --- Dockerfile | 13 ++++++------- Makefile | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index de7a8a46..7cb1d9d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,13 +6,12 @@ WORKDIR /go/src/github.com/stefanprodan/steerer COPY . . -RUN gofmt -l -d $(find . -type f -name '*.go' -not -path "./vendor/*") && \ - VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags | sed 's/tags\///') && \ - GIT_COMMIT=$(git rev-list -1 HEAD) && \ - CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \ - -X github.com/stefanprodan/steerer/pkg/version.VERSION=${VERSION} \ - -X github.com/stefanprodan/steerer/pkg/version.REVISION=${GIT_COMMIT}" \ - -a -installsuffix cgo -o steerer ./cmd/controller/* +RUN VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags | sed 's/tags\///') && \ + GIT_COMMIT=$(git rev-list -1 HEAD) && \ + CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \ + -X github.com/stefanprodan/steerer/pkg/version.VERSION=${VERSION} \ + -X github.com/stefanprodan/steerer/pkg/version.REVISION=${GIT_COMMIT}" \ + -a -installsuffix cgo -o steerer ./cmd/controller/* FROM alpine:3.8 diff --git a/Makefile b/Makefile index 70002459..c2353990 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ push: docker push stefanprodan/steerer:$(TAG) test: - go test ./... + go test ./pkg/controller verify-codegen: ./hack/verify-codegen.sh