mirror of
https://github.com/containers/skopeo.git
synced 2026-02-03 07:48:30 +00:00
Add a "validate" target to the top level Makefile that checks formatting of source files with golint, signed-off-by tags with git-validate, and for various other warnings with gometalinter. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com> Closes: #62 Approved by: rhatdan
14 lines
558 B
Bash
Executable File
14 lines
558 B
Bash
Executable File
#!/bin/bash
|
|
export PATH=${GOPATH%%:*}/bin:${PATH}
|
|
if ! which git-validation > /dev/null 2> /dev/null ; then
|
|
echo git-validation is not installed.
|
|
echo Try installing it with \"make install.tools\" or with
|
|
echo \"go get -u github.com/vbatts/git-validation\"
|
|
exit 1
|
|
fi
|
|
if test "$TRAVIS" != true ; then
|
|
#GITVALIDATE_EPOCH=":/git-validation epoch"
|
|
GITVALIDATE_EPOCH="b1bb73e01c9bf0b1b75e50a2d1947b14a8174eee"
|
|
fi
|
|
exec git-validation -q -run DCO,short-subject ${GITVALIDATE_EPOCH:+-range "${GITVALIDATE_EPOCH}""..${GITVALIDATE_TIP:-@}"} ${GITVALIDATE_FLAGS}
|