use project dco test locally
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
parent
9d37687a95
commit
0049d4f973
13
Makefile
13
Makefile
@ -21,7 +21,7 @@ ifeq ($(GOOS),windows)
|
|||||||
WHALE = "+"
|
WHALE = "+"
|
||||||
ONI = "-"
|
ONI = "-"
|
||||||
endif
|
endif
|
||||||
EPOCH_TEST_COMMIT := f9e02affccd51702191e5312665a16045ffef8ab
|
EPOCH_TEST_COMMIT := 67de3e4ccf2b2a69b8398798af7cfca01abf7a7e
|
||||||
PROJECT := github.com/containerd/cri
|
PROJECT := github.com/containerd/cri
|
||||||
BINDIR := ${DESTDIR}/usr/local/bin
|
BINDIR := ${DESTDIR}/usr/local/bin
|
||||||
BUILD_DIR := _output
|
BUILD_DIR := _output
|
||||||
@ -175,15 +175,12 @@ endif
|
|||||||
@./hack/install/windows/install-deps.sh
|
@./hack/install/windows/install-deps.sh
|
||||||
|
|
||||||
.PHONY: .gitvalidation
|
.PHONY: .gitvalidation
|
||||||
# When this is running in travis, it will only check the travis commit range.
|
# make .gitvalidation is only used localy for manual testing
|
||||||
# When running outside travis, it will check from $(EPOCH_TEST_COMMIT)..HEAD.
|
# requires a clone of github.com/containerd/project
|
||||||
|
# containerd/project DCO validation runs automatically with github actions in ci.yml for each pull
|
||||||
.gitvalidation:
|
.gitvalidation:
|
||||||
@echo "$(WHALE) $@"
|
@echo "$(WHALE) $@"
|
||||||
ifeq ($(TRAVIS),true)
|
DCO_VERBOSITY=-v DCO_RANGE=$(EPOCH_TEST_COMMIT)..HEAD ../project/script/validate/dco
|
||||||
git-validation -q -run DCO,short-subject
|
|
||||||
else
|
|
||||||
git-validation -v -run DCO,short-subject -range $(EPOCH_TEST_COMMIT)..HEAD
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: install.tools .install.gitvalidation .install.golangci-lint .install.vndr
|
.PHONY: install.tools .install.gitvalidation .install.golangci-lint .install.vndr
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user