1
0
mirror of https://github.com/go-task/task.git synced 2025-01-02 03:38:01 +02:00
task/vendor/github.com/stretchr/testify/.travis.gogenerate.sh
2018-01-03 15:12:40 -02:00

14 lines
239 B
Bash
Executable File

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