Setup various tools

This commit is contained in:
Benoit Marty 2019-03-13 17:50:03 +01:00
parent a199eaa171
commit eca59114dd

View File

@ -23,7 +23,7 @@ branch=${TRAVIS_BRANCH}
# If not on develop, exit, else we cannot get the list of modified files # If not on develop, exit, else we cannot get the list of modified files
# It is ok to check only when on develop branch # It is ok to check only when on develop branch
if [[ "${branch}" -eq 'develop' ]]; then if [[ "${branch}" -eq 'develop' ]]; then
echo "Check that the file 'CHANGES.rst' has been modified" echo "Check that the file 'CHANGES.md' has been modified"
else else
echo "Not on develop branch" echo "Not on develop branch"
exit 0 exit 0
@ -37,9 +37,9 @@ listOfModifiedFiles=`git diff --name-only HEAD ${branch}`
# echo ${listOfModifiedFiles} # echo ${listOfModifiedFiles}




if [[ ${listOfModifiedFiles} = *"CHANGES.rst"* ]]; then if [[ ${listOfModifiedFiles} = *"CHANGES.md"* ]]; then
echo "CHANGES.rst has been modified!" echo "CHANGES.md has been modified!"
else else
echo "❌ Please add a line describing your change in CHANGES.rst" echo "❌ Please add a line describing your change in CHANGES.md"
exit 1 exit 1
fi fi