summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/testify/.travis.gogenerate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/stretchr/testify/.travis.gogenerate.sh')
-rwxr-xr-xvendor/github.com/stretchr/testify/.travis.gogenerate.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/stretchr/testify/.travis.gogenerate.sh b/vendor/github.com/stretchr/testify/.travis.gogenerate.sh
new file mode 100755
index 000000000..161b449cd
--- /dev/null
+++ b/vendor/github.com/stretchr/testify/.travis.gogenerate.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [[ "$TRAVIS_GO_VERSION" =~ ^1\.[45](\..*)?$ ]]; then
+ exit 0
+fi
+
+go get github.com/ernesto-jimenez/gogen/imports
+go generate ./...
+if [ -n "$(git diff)" ]; then
+ echo "Go generate had not been run"
+ git diff
+ exit 1
+fi