system testing using docker

This commit is contained in:
Sridhar Ratnakumar 2013-09-09 03:04:39 +00:00
parent b87764baaf
commit 45e3f1a853
2 changed files with 21 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
# -*- sh -*-
FROM ubuntu:quantal
RUN echo "deb http://archive.ubuntu.com/ubuntu quantal main universe" >> /etc/apt/sources.list
RUN apt-get -qy update
RUN apt-get -qy install golang-go
RUN apt-get -qy install git mercurial bzr subversion
ENV GOPATH $HOME/go
# expecting to fetch dependencies successfully.
RUN go get -v github.com/ActiveState/tail
# expecting to run the test successfully.
RUN go test -v github.com/ActiveState/tail

View File

@ -5,3 +5,6 @@ test: *.go
fmt: fmt:
go fmt . go fmt .
fulltest:
sudo docker build -t ActiveState/tail .