Add a validate script so we can validate.

For easy validations.

Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <hugs@docker.com> (github: jfrazelle)
This commit is contained in:
Jessica Frazelle 2015-02-23 12:49:38 -08:00
parent d1ae7cd673
commit f8eb40433c
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