From da5add10c640bbb75f042d002d12f1289b6504a5 Mon Sep 17 00:00:00 2001 From: Sergey Dudoladov Date: Mon, 25 Feb 2019 14:48:03 +0100 Subject: [PATCH] Verify staleness of generated code during build --- .travis.yml | 1 + Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index faeb2cc8b..4901e45ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,4 +18,5 @@ install: - make deps script: + - hack/verify-codegen.sh - travis_wait 20 goveralls -service=travis-ci -package ./pkg/... -v diff --git a/Makefile b/Makefile index a13d830e2..2875529c5 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ clean: rm -rf build scm-source.json local: ${SOURCES} + hack/verify-codegen.sh CGO_ENABLED=${CGO_ENABLED} go build -o build/${BINARY} $(LOCAL_BUILD_FLAGS) -ldflags "$(LDFLAGS)" $^ linux: ${SOURCES}