Skip to content

Commit

Permalink
Fix travis script checking changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
longfin committed Mar 4, 2019
1 parent 9e82583 commit 4ada47e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,7 @@ script:
elif [[ "$TRAVIS_TAG" != "" ]]; then
! grep -i "to be released" CHANGES.md
else
if [[ "$TRAVIS_PULL_REQUEST_SHA" = "" ]]; then
commit_range="$TRAVIS_COMMIT_RANGE"
else
commit_range="$TRAVIS_BRANCH...$TRAVIS_PULL_REQUEST_SHA"
fi
[[ "$(git diff --name-only "$commit_range" | grep CHANGES\.md)" != "" ]]
[[ "$(git diff --name-only "$TRAVIS_COMMIT_RANGE" | grep CHANGES\.md)" != "" ]]
fi
# Check coding styles
Expand Down

0 comments on commit 4ada47e

Please sign in to comment.