mirror of
https://github.com/openfaas/faas.git
synced 2025-06-23 23:33:25 +00:00
Run unit tests before build
This modifies Dockerfile.build.* to run unit tests before build.
This commit is contained in:
committed by
Alex Ellis
parent
9e711b3b5d
commit
eccf94295f
@ -18,4 +18,5 @@ COPY requests requests
|
|||||||
COPY tests tests
|
COPY tests tests
|
||||||
COPY server.go .
|
COPY server.go .
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
RUN go test -v ./tests && \
|
||||||
|
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
||||||
|
@ -17,4 +17,5 @@ COPY handlers handlers
|
|||||||
|
|
||||||
COPY server.go .
|
COPY server.go .
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
RUN go test -v ./tests && \
|
||||||
|
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
||||||
|
Reference in New Issue
Block a user