Add asset check script
This commit is contained in:
parent
06afa786ef
commit
c4cdacc2d8
@ -16,6 +16,9 @@ go:
|
||||
env:
|
||||
- GO15VENDOREXPERIMENT=1
|
||||
|
||||
before_install:
|
||||
- ./script/check_assets.sh
|
||||
|
||||
install:
|
||||
- make setup
|
||||
|
||||
|
10
script/check_assets.sh
Executable file
10
script/check_assets.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user