Skip to content

Commit

Permalink
Merge pull request #112 from dahlia/changelog-check
Browse files Browse the repository at this point in the history
Check changelog using Changelog Check instead
  • Loading branch information
dahlia authored Mar 5, 2019
2 parents 86f399a + 083c037 commit 11799e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
13 changes: 0 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,7 @@ script:
if [[ "$TRAVIS_OS_NAME" = "linux" && "$TRAVIS_TAG" != "" ]]; then
changes="$(submark -i --h2 "Version $TRAVIS_TAG" CHANGES.md | egrep '\S')"
[[ "$changes" != "" ]]
fi
# Check changelog
- |
commit_sha="${TRAVIS_PULL_REQUEST_SHA:-${TRAVIS_TAG:-${TRAVIS_COMMIT}}}"
if [[ "$(git tag -l)" = "" ]]; then
echo "Skip changelog chekcer because there has been no release yet."
elif git show --format=%B --quiet "$commit_sha" \
| egrep '\[(skip changelog|changelog skip)\]' > /dev/null; then
echo "Skip changelog checker..."
elif [[ "$TRAVIS_TAG" != "" ]]; then
! grep -i "to be released" CHANGES.md
else
[[ "$(git diff --name-only "$TRAVIS_COMMIT_RANGE" | grep CHANGES\.md)" != "" ]]
fi
# Check coding styles
Expand Down
4 changes: 3 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Libplanet changelog
Version 0.1.1
-------------

- Improved stability of `Swarm` and `SwarmTest`.
To be released.

- Improved stability of `Swarm` and `SwarmTest`.


Version 0.1.0
Expand Down

0 comments on commit 11799e2

Please sign in to comment.