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
This commit is contained in:
Łukasz Mierzwa
2018-12-23 14:56:09 +00:00
parent f11685b134
commit feb9ebacfc

View File

@@ -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: