From feb9ebacfc89afc01979513ebb1dc592bbf1d32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sun, 23 Dec 2018 14:56:09 +0000 Subject: [PATCH] fix(ci): move git diff check to the end of job run Go modules might trigger some changes now, ensure that we check for diff after building everything --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1952dfeed..883621391 100644 --- a/.travis.yml +++ b/.travis.yml @@ -86,9 +86,6 @@ jobs: - go mod download # compile assets via webpack and build those into bindata_assetfs.go file - make bindata_assetfs.go - # verify that there are no uncommited changes from (re)compiling sass - # assets - - git diff --exit-code # install bakelite, we can't "go get" a tag from github, so we fetch the binary - export BAKELITE_VERSION="v0.2.0" - export BAKELITE_OS=$(go env GOHOSTOS) @@ -100,6 +97,8 @@ jobs: - ./bakelite-${BAKELITE_OS}-${BAKELITE_ARCH} -platforms="-plan9" -ldflags="-X main.version=\"$(make show-version)\"" github.com/prymitive/karma - for i in karma-*; do tar --mtime="${SOURCE_DATE_EPOCH}" --owner=0 --group=0 --numeric-owner -c $i | gzip -n - > $i.tar.gz; done - shasum -a 512 karma-*.tar.gz | tee sha512sum.txt + # verify that there are no uncommited changes + - git diff --exit-code deploy: provider: releases api_key: