diff --git a/Makefile b/Makefile index e1567ab5..c2c9a98d 100644 --- a/Makefile +++ b/Makefile @@ -22,5 +22,10 @@ direct-build: direct-install: go install -v $(GO_PACKAGES) + local: go test -v + +validate: + hack/validate.sh + diff --git a/hack/validate.sh b/hack/validate.sh new file mode 100755 index 00000000..b3434106 --- /dev/null +++ b/hack/validate.sh @@ -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