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:
parent
d1ae7cd673
commit
f8eb40433c
5
Makefile
5
Makefile
|
@ -22,5 +22,10 @@ direct-build:
|
||||||
|
|
||||||
direct-install:
|
direct-install:
|
||||||
go install -v $(GO_PACKAGES)
|
go install -v $(GO_PACKAGES)
|
||||||
|
|
||||||
local:
|
local:
|
||||||
go test -v
|
go test -v
|
||||||
|
|
||||||
|
validate:
|
||||||
|
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
|
Loading…
Reference in New Issue