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:
12
script/validate/dco
Executable file
12
script/validate/dco
Executable 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
|
Reference in New Issue
Block a user