Build and test using Docker

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
Ben Firshman
2014-12-08 16:46:40 -08:00
parent 54de0cf03f
commit e42afabd03
7 changed files with 16 additions and 7 deletions

View File

@@ -1,2 +1,4 @@
#!/bin/sh
GOPATH=`pwd`/Godeps/_workspace:$GOPATH go build
set -e
docker build -t docker-machine .
exec docker run --rm -v `pwd`:/go/src/github.com/docker/machine docker-machine gox -os="darwin linux" -parallel=5

View File

@@ -1,2 +1,4 @@
#!/bin/sh
GOPATH=`pwd`/Godep/_workspace:$GOPATH go test -v ./...
set -e
docker build -t docker-machine .
exec docker run --rm docker-machine go test -v ./...