Add asset check script

This commit is contained in:
Dan Sosedoff 2017-10-24 23:11:02 -05:00
parent 06afa786ef
commit c4cdacc2d8
2 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,9 @@ go:
env:
- GO15VENDOREXPERIMENT=1
before_install:
- ./script/check_assets.sh
install:
- make setup

10
script/check_assets.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
if grep -q 'go/src/github.com/sosedoff/pgweb' ./pkg/data/bindata.go
then
echo "=========================================================="
echo "ERROR: Bindata contains development references to assets!"
echo "Fix with 'make assets' and commit the change."
echo "=========================================================="
exit 1
fi