rss2twitter/vendor/github.com/stretchr/testify/.travis.gogenerate.sh
2019-01-08 03:16:29 -06:00

13 行
239 B
Bash
実行ファイル

#!/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