Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-02-15 12:28:36 +0300
committerJacob Vosmaer <jacob@gitlab.com>2017-02-15 12:28:36 +0300
commita2edf1f25d96f2dae9f4d64b16c0f94955f0c139 (patch)
tree47dbdd7b221f9f34eb64551384b74472dc75af10 /Makefile
parent65c8063c4a2e7264f72a120b8ddcffea413f6e15 (diff)
Check NOTICE in CI
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 290b126df..1a9565c8d 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ build: clean-build ${BUILD_DIR}/_build $(shell find . -name '*.go' -not -path '.
cd ${PKG_BUILD_DIR} && $(foreach cmd,${CMDS},go build ./cmd/${cmd} && ) true
mv $(foreach cmd,${CMDS},${PKG_BUILD_DIR}/${cmd}) ${BUILD_DIR}/
-verify: lint check-formatting govendor-status
+verify: lint check-formatting govendor-status notice-up-to-date
check-formatting: install-developer-tools
go run _support/gofmt-all.go -n
@@ -40,6 +40,10 @@ notice: ${BUILD_DIR}/_build install-developer-tools
rm -f ${PKG_BUILD_DIR}/NOTICE # Avoid NOTICE-in-NOTICE
cd ${PKG_BUILD_DIR} && govendor license -template _support/notice.template -o ${BUILD_DIR}/NOTICE
+notice-up-to-date: notice
+ git ls-files --error-unmatch NOTICE # NOTICE is a tracked file
+ git diff --exit-code # there are no changed files
+
clean: clean-build
rm -rf client/testdata
rm -f $(foreach cmd,${CMDS},./${cmd})