diff --git a/.travis.yml b/.travis.yml index 35e05ae..ebba98e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,9 @@ go: env: - GO15VENDOREXPERIMENT=1 +before_install: + - ./script/check_assets.sh + install: - make setup diff --git a/script/check_assets.sh b/script/check_assets.sh new file mode 100755 index 0000000..fee44c7 --- /dev/null +++ b/script/check_assets.sh @@ -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 \ No newline at end of file