diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3391bd5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: go + +# this should be exactly the same as what's in the Dockerfile +go: 1.3 + +# let us have pretty experimental Docker-based Travis workers +sudo: false + +env: + - _GOOS=linux _GOARCH=amd64 + - _GOOS=darwin _GOARCH=amd64 + - _GOOS=windows _GOARCH=amd64 + +install: + - env | sort + - gvm cross "$_GOOS" "$_GOARCH" + - export GOOS="$_GOOS" GOARCH="$_GOARCH" + - go env + - go get -d -v ./... + +script: + # TODO - some gofmt magic + - go build -v ./... + # TODO - go test -v ./... # (we first need to skip all the meaty vbox tests when "VBoxManage" isn't available, or mock it) diff --git a/README.md b/README.md index 846a169..3beabed 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,8 @@ the same as the command-line flags with long names. ## Contribution +[![Build Status](https://travis-ci.org/boot2docker/boot2docker-cli.svg?branch=master)](https://travis-ci.org/boot2docker/boot2docker-cli) + We are implementing the same process as [Docker merge approval](https://github.com/dotcloud/docker/blob/master/CONTRIBUTING.md#merge-approval), so all commits need to be done via pull requests, and will need three or more