Merge pull request #395 from jfrazelle/add-validate-script

Add a validate script
This commit is contained in:
Victor Marmol 2015-02-26 09:11:58 -08:00
commit 8d0f911e1d
2 changed files with 18 additions and 0 deletions

View File

@ -22,5 +22,10 @@ direct-build:
direct-install:
go install -v $(GO_PACKAGES)
local:
go test -v
validate:
hack/validate.sh

13
hack/validate.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
# This script runs all validations
validate() {
sed -i 's!docker/docker!docker/libcontainer!' /go/src/github.com/docker/docker/hack/make/.validate
/go/src/github.com/docker/docker/hack/make/validate-dco
/go/src/github.com/docker/docker/hack/make/validate-gofmt
}
# run validations
validate