From 87b93288b98b2e01b1b8da25b3c17593bd8f6729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Tue, 1 Jan 2019 16:00:07 +0000 Subject: [PATCH] feat(ci): check for git diff after go get in CI This will fail if go.sum is incomplete and running go get causes new lines to be added --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index d9672e445..e9b649646 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,6 +74,15 @@ jobs: - DESC="Lint documentation" script: make lint-docs + - state: Lint + <<: *DEFAULTS_GO + env: + - DESC="Verify go.sum" + script: + - make mock-assets + - GO111MODULE=on go get -d -v + - git diff --exit-code + - stage: Build Docker image language: generic addons: