diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-02-15 12:28:36 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-02-15 12:28:36 +0300 |
commit | a2edf1f25d96f2dae9f4d64b16c0f94955f0c139 (patch) | |
tree | 47dbdd7b221f9f34eb64551384b74472dc75af10 /Makefile | |
parent | 65c8063c4a2e7264f72a120b8ddcffea413f6e15 (diff) |
Check NOTICE in CI
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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}) |