Don't run tests when building Docker images.
Use maintained go-bindata.
This commit is contained in:
parent
2cba4905f7
commit
6cea6ae9d9
@ -18,8 +18,6 @@ ADD ./cmd/magneticod /go/src/github.com/boramalper/magnetico/cmd/magneticod
|
|||||||
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||||
WORKDIR /go/src/github.com/boramalper/magnetico/
|
WORKDIR /go/src/github.com/boramalper/magnetico/
|
||||||
RUN make ensure
|
RUN make ensure
|
||||||
RUN make test-persistence
|
|
||||||
RUN make test-magneticod
|
|
||||||
RUN make magneticod
|
RUN make magneticod
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
@ -18,8 +18,6 @@ ADD ./cmd/magneticow /go/src/github.com/boramalper/magnetico/cmd/magneticow
|
|||||||
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||||
WORKDIR /go/src/github.com/boramalper/magnetico/
|
WORKDIR /go/src/github.com/boramalper/magnetico/
|
||||||
RUN make ensure
|
RUN make ensure
|
||||||
RUN make test-persistence
|
|
||||||
RUN make test-magneticow
|
|
||||||
RUN make magneticow
|
RUN make magneticow
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
1
Makefile
1
Makefile
@ -22,6 +22,7 @@ image: image-magneticod image-magneticow
|
|||||||
# Download dependencies
|
# Download dependencies
|
||||||
ensure:
|
ensure:
|
||||||
dep ensure -v
|
dep ensure -v
|
||||||
|
go get -u github.com/kevinburke/go-bindata/...
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
go vet github.com/boramalper/magnetico/...
|
go vet github.com/boramalper/magnetico/...
|
||||||
|
Loading…
Reference in New Issue
Block a user