2019-02-01 18:11:57 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-02-04 14:50:55 +00:00
|
|
|
CHANGES=$(git diff --name-only $TRAVIS_COMMIT_RANGE -- go.mod go.sum) || CHANGES="fail"
|
2019-02-01 18:11:57 +00:00
|
|
|
|
|
|
|
if [ -z "$CHANGES" ]
|
|
|
|
then
|
|
|
|
echo "go modules not changed"
|
|
|
|
else
|
2019-02-04 14:50:55 +00:00
|
|
|
echo "go module changes detected: $CHANGES"
|
2019-02-04 13:40:36 +00:00
|
|
|
gospace istidy
|
2019-02-01 18:11:57 +00:00
|
|
|
fi
|