From 0d558857e3209da28e4ca950110e1b7619f13d79 Mon Sep 17 00:00:00 2001 From: Umputun Date: Wed, 23 May 2018 00:37:05 -0500 Subject: [PATCH] fix lack of git info for coverage --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0ee24e99..5c5536f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ WORKDIR /go/src/github.com/umputun/remark ADD app /go/src/github.com/umputun/remark/app ADD vendor /go/src/github.com/umputun/remark/vendor +ADD .git /go/src/github.com/umputun/remark/.git RUN cd app && go test $(go list -e ./... | grep -v vendor) @@ -21,7 +22,6 @@ RUN if [ "x$COVERALLS_TOKEN" = "x" ] ; then \ else go get github.com/mattn/goveralls && \ goveralls -coverprofile=.cover/cover.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi -ADD .git /go/src/github.com/umputun/remark/.git RUN go build -o remark -ldflags "-X main.revision=$(git rev-parse --abbrev-ref HEAD)-$(git describe --abbrev=7 --always --tags)-$(date +%Y%m%d-%H:%M:%S) -s -w" ./app