full diff: https://github.com/gotestyourself/gotestsum/compare/v0.3.5...v0.4.0 includes: - gotestyourself/gotestsum#59 Report if a package was cached in short formats - gotestyourself/gotestsum#63 always colorize output unless specifically requested not to - gotestyourself/gotestsum#61 Improve short-verbose output for tests in CWD - gotestyourself/gotestsum#70 https://github.com/gotestyourself/gotestsum/pull/70 - gotestyourself/gotestsum#73 Add short-with-failures format Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
34 lines
1.2 KiB
Docker
34 lines
1.2 KiB
Docker
ARG GO_VERSION=1.12.15
|
|
|
|
FROM golang:${GO_VERSION}-alpine
|
|
|
|
RUN apk add -U git make bash coreutils ca-certificates curl
|
|
|
|
# v0.1.0
|
|
ARG VNDR_SHA=d385c05e4c23b602dd16b3d2a1a6c710919bf02f
|
|
RUN go get -d github.com/LK4D4/vndr && \
|
|
cd /go/src/github.com/LK4D4/vndr && \
|
|
git checkout -q "$VNDR_SHA" && \
|
|
go build -v -o /usr/bin/vndr . && \
|
|
rm -rf /go/src/* /go/pkg/* /go/bin/*
|
|
|
|
# v0.2.0
|
|
ARG ESC_SHA=0ea7db170df78dcddf3e223365f444163147fe89
|
|
RUN go get -d github.com/mjibson/esc && \
|
|
cd /go/src/github.com/mjibson/esc && \
|
|
git checkout -q "$ESC_SHA" && \
|
|
go build -v -o /usr/bin/esc . && \
|
|
rm -rf /go/src/* /go/pkg/* /go/bin/*
|
|
|
|
ARG GOTESTSUM_VERSION=0.4.0
|
|
RUN curl -Ls https://github.com/gotestyourself/gotestsum/releases/download/v${GOTESTSUM_VERSION}/gotestsum_${GOTESTSUM_VERSION}_linux_amd64.tar.gz -o gotestsum.tar.gz && \
|
|
tar -xf gotestsum.tar.gz gotestsum -C /usr/bin && \
|
|
rm gotestsum.tar.gz
|
|
|
|
ENV CGO_ENABLED=0 \
|
|
PATH=$PATH:/go/src/github.com/docker/cli/build \
|
|
DISABLE_WARN_OUTSIDE_CONTAINER=1
|
|
WORKDIR /go/src/github.com/docker/cli
|
|
CMD sh
|
|
COPY . .
|