travis: ignore changes to go.mod during diff checks

This commit is contained in:
Dan Kortschak
2019-02-06 19:46:49 +10:30
parent c69cb06909
commit 66532af93a

View File

@@ -5,6 +5,7 @@ go generate gonum.org/v1/gonum/blas/gonum
go generate gonum.org/v1/gonum/unit
go generate gonum.org/v1/gonum/graph/formats/dot
if [ -n "$(git diff)" ]; then
git checkout -- go.mod # Discard changes to go.mod that have been made.
git diff
exit 1
fi