diff --git a/tests/test_changelog.sh b/tests/test_changelog.sh index 17cb029..08fe59f 100755 --- a/tests/test_changelog.sh +++ b/tests/test_changelog.sh @@ -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