From 4fb4f2aa10e1ed61f5af4c57ba9abd502cea7237 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 9 Sep 2013 03:20:08 +0000 Subject: [PATCH] fulltest: run go install --- Dockerfile | 9 +++++++++ Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index da59dc4..0f558e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,3 +19,12 @@ RUN go get -v github.com/ActiveState/tail # expecting to run the test successfully. RUN go test -v github.com/ActiveState/tail +# expecting to install successfully +RUN go install -v github.com/ActiveState/tail +RUN go install -v github.com/ActiveState/tail/cmd/gotail + +RUN $GOPATH/bin/gotail -h || true + +ENV PATH $GOPATH/bin:$PATH +CMD ["gotail"] + diff --git a/Makefile b/Makefile index e597de3..a056dac 100644 --- a/Makefile +++ b/Makefile @@ -6,5 +6,6 @@ test: *.go fmt: go fmt . +# Run the test in an isolated environment. fulltest: sudo docker build -t ActiveState/tail .