Add project stuff for CI/make/etc

This commit is contained in:
Brian Goff
2019-06-14 12:49:55 -07:00
parent a894106043
commit 34c355d3fa
6 changed files with 480 additions and 0 deletions

16
hack/ci/check_mods.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
set -e
exit_code=0
make mod
git diff --exit-code go.mod go.sum || exit_code=$?
if [ ${exit_code} -eq 0 ]; then
exit 0
fi
echo "please run \`make mod\` and check in the changes"
exit ${exit_code}