Merge pull request #181 from tianon/dco

Add DCO and gofmt checking
This commit is contained in:
Victor Vieux 2014-12-16 12:27:56 -08:00
commit 6e8ef790af
1 changed files with 12 additions and 0 deletions

View File

@ -4,5 +4,17 @@ go:
- 1.3
- 1.4
# let us have speedy Docker-based Travis workers
sudo: false
install:
- export DOCKER_PATH="${GOPATH%%:*}/src/github.com/docker/docker"
- mkdir -pv "$DOCKER_PATH/project/make"
- ( cd "$DOCKER_PATH/project/make" && wget -c 'https://raw.githubusercontent.com/docker/docker/master/project/make/'{.validate,validate-dco,validate-gofmt} )
- sed -i 's!docker/docker!docker/swarm!' "$DOCKER_PATH/project/make/.validate"
- go get -t -v ./...
script:
- bash "$DOCKER_PATH/project/make/validate-dco"
- bash "$DOCKER_PATH/project/make/validate-gofmt"
- go test -v ./...