Skip to content

Commit

Permalink
Only do changelog check if it's a PR not coming from develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Aug 3, 2017
1 parent e18d641 commit ec855dd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_changelog.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh
#!/bin/bash
echo TRAVIS_PULL_REQUEST_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
echo TRAVIS_TAG=$TRAVIS_TAG
if [[ ( ! -z $TRAVIS_PULL_REQUEST_BRANCH ) && ( $TRAVIS_PULL_REQUEST_BRANCH != "develop" ) && ( -z $TRAVIS_TAG ) ]]; then
[ ! -z "$(git diff develop... -- ../CHANGELOG.rst)" ] || ( echo "Remember to update the CHANGELOG.rst" && return 1 )
echo "Checking for CHANGELOG changes"
[ ! -z "$(git diff develop... -- ../CHANGELOG.rst)" ] || ( echo "Remember to update the CHANGELOG.rst" && exit 1 )
else
echo "Not checking for CHANGELOG changes"
fi

0 comments on commit ec855dd

Please sign in to comment.