Skip to content

Commit

Permalink
make fragment check only happen on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael H committed Jul 16, 2019
1 parent 8bd3f55 commit efd07b4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
26 changes: 18 additions & 8 deletions tools/check_changelog_entries.sh
@@ -1,16 +1,26 @@
#!/usr/bin/env bash

# This is hard coded as `origin` for the remote to check against for travis
# This should not be run elsewhere

if [[ $(git diff origin/V3/develop) ]]; then
if [[ $(git diff origin/V3/develop -- changelog.d/) ]]; then
echo "Found changelog fragments..."
exit 0
if [[ ${TRAVIS:-false} = "true" ]]; then

if [[ $(git diff origin/V3/develop) ]]; then

if [[ $(git diff origin/V3/develop -- changelog.d/) ]]; then
echo "Found changelog fragments..."
exit 0
else
echo "Error: No new changelog fragments!"
exit 1
fi

else
echo "Error: No new changelog fragments!"
exit 1
echo "No changes to need changelog for."
exit 0
fi

else
echo "No changes to need changelog for."
echo "We aren't on Travis, skipping changelog check."
exit 0
fi
fi
1 change: 0 additions & 1 deletion tools/dev-requirements.txt
@@ -1,4 +1,3 @@
packaging
tox
towncrier
-e .[docs,mongo,style,test]
1 change: 1 addition & 0 deletions tools/primary_deps.ini
Expand Up @@ -30,6 +30,7 @@ docs =
Sphinx
sphinx_rtd_theme
sphinxcontrib-trio
towncrier
mongo =
dnspython
motor
Expand Down

0 comments on commit efd07b4

Please sign in to comment.