2015-02-24 04:49:38 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# This script runs all validations
|
|
|
|
|
|
|
|
validate() {
|
2015-06-05 05:14:15 +08:00
|
|
|
export MAKEDIR=/go/src/github.com/docker/docker/hack/make
|
2015-06-22 10:29:59 +08:00
|
|
|
sed -i 's!docker/docker!opencontainers/runc/libcontainer!' /go/src/github.com/docker/docker/hack/make/.validate
|
2015-02-27 01:36:29 +08:00
|
|
|
bash /go/src/github.com/docker/docker/hack/make/validate-dco
|
|
|
|
bash /go/src/github.com/docker/docker/hack/make/validate-gofmt
|
2015-03-06 02:17:21 +08:00
|
|
|
go get golang.org/x/tools/cmd/vet
|
2015-06-17 00:44:57 +08:00
|
|
|
bash /go/src/github.com/docker/docker/hack/make/validate-vet
|
2015-02-24 04:49:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
# run validations
|
|
|
|
validate
|