Skip to content

Commit

Permalink
Add code coverage to the tests
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
  • Loading branch information
Michael Crosby committed Jul 23, 2014
1 parent 4404b15 commit 39ce7cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM crosbymichael/golang

RUN apt-get update && apt-get install -y gcc
RUN go get code.google.com/p/go.tools/cmd/cover

ADD . /go/src/github.com/docker/libcontainer
WORKDIR /go/src/github.com/docker/libcontainer
RUN go get -d ./... && go install ./...

CMD ["go", "test", "./..."]
CMD ["go", "test", "-v", "-cover", "./..."]

0 comments on commit 39ce7cc

Please sign in to comment.