mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 14:35:53 +00:00
Remove tests from docker files
This commit is contained in:
parent
f6d46fd23f
commit
f6e2f42343
@ -6,8 +6,6 @@ RUN mkdir -p /go/src/github.com/kaspanet/kaspad
|
|||||||
WORKDIR /go/src/github.com/kaspanet/kaspad
|
WORKDIR /go/src/github.com/kaspanet/kaspad
|
||||||
|
|
||||||
RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
||||||
RUN go get -u golang.org/x/lint/golint \
|
|
||||||
honnef.co/go/tools/cmd/staticcheck
|
|
||||||
|
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
@ -18,10 +16,6 @@ COPY . .
|
|||||||
|
|
||||||
WORKDIR /go/src/github.com/kaspanet/kaspad/cmd/kaspactl
|
WORKDIR /go/src/github.com/kaspanet/kaspad/cmd/kaspactl
|
||||||
|
|
||||||
RUN GOFMT_RESULT=`go fmt ./...`; echo $GOFMT_RESULT; test -z "$GOFMT_RESULT"
|
|
||||||
RUN go vet ./...
|
|
||||||
RUN golint -set_exit_status ./...
|
|
||||||
RUN staticcheck -checks SA4006 ./...
|
|
||||||
RUN GOOS=linux go build -a -installsuffix cgo -o kaspactl .
|
RUN GOOS=linux go build -a -installsuffix cgo -o kaspactl .
|
||||||
|
|
||||||
# --- multistage docker build: stage #2: runtime image
|
# --- multistage docker build: stage #2: runtime image
|
||||||
|
|||||||
@ -6,8 +6,6 @@ RUN mkdir -p /go/src/github.com/kaspanet/kaspad
|
|||||||
WORKDIR /go/src/github.com/kaspanet/kaspad
|
WORKDIR /go/src/github.com/kaspanet/kaspad
|
||||||
|
|
||||||
RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
||||||
RUN go get -u golang.org/x/lint/golint \
|
|
||||||
honnef.co/go/tools/cmd/staticcheck
|
|
||||||
|
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
@ -17,11 +15,6 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/kaspanet/kaspad/cmd/kaspaminer
|
WORKDIR /go/src/github.com/kaspanet/kaspad/cmd/kaspaminer
|
||||||
|
|
||||||
RUN GOFMT_RESULT=`go fmt ./...`; echo $GOFMT_RESULT; test -z "$GOFMT_RESULT"
|
|
||||||
RUN go vet ./...
|
|
||||||
RUN golint -set_exit_status ./...
|
|
||||||
RUN staticcheck -checks SA4006 ./...
|
|
||||||
RUN GOOS=linux go build -a -installsuffix cgo -o kaspaminer .
|
RUN GOOS=linux go build -a -installsuffix cgo -o kaspaminer .
|
||||||
|
|
||||||
# --- multistage docker build: stage #2: runtime image
|
# --- multistage docker build: stage #2: runtime image
|
||||||
|
|||||||
@ -10,19 +10,13 @@ RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
|||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
|
|
||||||
RUN go get -u golang.org/x/lint/golint \
|
|
||||||
github.com/kisielk/errcheck \
|
|
||||||
github.com/opennota/check/cmd/aligncheck \
|
|
||||||
github.com/opennota/check/cmd/structcheck \
|
|
||||||
github.com/opennota/check/cmd/varcheck \
|
|
||||||
honnef.co/go/tools/cmd/staticcheck
|
|
||||||
|
|
||||||
# Cache kaspad dependencies
|
# Cache kaspad dependencies
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN ./build_and_test.sh
|
RUN go build $FLAGS -o kaspad .
|
||||||
|
|
||||||
# --- multistage docker build: stage #2: runtime image
|
# --- multistage docker build: stage #2: runtime image
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user