From f8eb40433c4a8617a20ad36119973af6f9dd2cd0 Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Mon, 23 Feb 2015 12:49:38 -0800 Subject: [PATCH] Add a validate script so we can validate. For easy validations. Docker-DCO-1.1-Signed-off-by: Jessie Frazelle (github: jfrazelle) --- Makefile | 5 +++++ hack/validate.sh | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 hack/validate.sh 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