Remove DCO check from makefile, move to .travis.yml

The DCO check is primarily only relevant as part of CI, so it
doesn't need to be in the Makefile. A contributor looking to
validate their commits can run script/validate/dco.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin
2018-01-08 18:27:52 -05:00
parent 1df6287150
commit ebbcececa1
3 changed files with 14 additions and 10 deletions

12
script/validate/dco Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -eu -o pipefail
if ! command -v git-validation; then
>&2 echo "ERROR: git-validation not found. Install with:"
>&2 echo " go get -u github.com/vbatts/git-validation"
exit 1
fi
GIT_CHECK_EXCLUDE="./vendor"
verbosity="${DCO_VERBOSITY--v}"
git-validation "$verbosity" -run DCO,short-subject,dangling-whitespace