Skip to content

Commit

Permalink
Give a short list of functional changes
Browse files Browse the repository at this point in the history
If none are detected, there will still be no output
  • Loading branch information
MattiSG authored and fpagnoux committed May 22, 2018
1 parent 266dd14 commit 86886c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/detect-functional-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ VERSION_CHANGE_TRIGGERS="setup.py MANIFEST.in openfisca_country_template"

last_tagged_commit=`git describe --tags --abbrev=0 --first-parent` # --first-parent ensures we don't follow tags not published in master through an unlikely intermediary merge commit

if git diff-index --quiet $last_tagged_commit -- $VERSION_CHANGE_TRIGGERS ":(exclude)*.md"
if git diff-index --shortstat $last_tagged_commit -- $VERSION_CHANGE_TRIGGERS ":(exclude)*.md"
then echo "No functional changes detected."
else exit 1
fi

0 comments on commit 86886c4

Please sign in to comment.