Add travis and fix Dockerfile for test files

This commit is contained in:
Alex
2017-01-24 20:22:28 +00:00
parent ac6fe0d124
commit 2275382e76
3 changed files with 21 additions and 18 deletions

View File

@ -1,6 +1,13 @@
FROM golang:1.7.3
RUN mkdir -p /go/src/app
COPY main.go /go/src/app
WORKDIR /go/src/app
COPY main.go .
COPY readconfig.go .
COPY config_test.go .
WORKDIR /go/src/app
RUN go get -d -v
RUN go test
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .