Merge pull request #305 from sosedoff/assets-ci-guard
Trigger CI failure if bindata contains any dev links
This commit is contained in:
commit
d123f8fc07
@ -16,6 +16,9 @@ go:
|
|||||||
env:
|
env:
|
||||||
- GO15VENDOREXPERIMENT=1
|
- GO15VENDOREXPERIMENT=1
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- ./script/check_assets.sh
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- make setup
|
- 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