Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make fragment check only happen on Travis
- Loading branch information
Michael H
committed
Jul 16, 2019
1 parent
8bd3f55
commit efd07b4
Showing
3 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
packaging | ||
tox | ||
towncrier | ||
-e .[docs,mongo,style,test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ docs = | |
Sphinx | ||
sphinx_rtd_theme | ||
sphinxcontrib-trio | ||
towncrier | ||
mongo = | ||
dnspython | ||
motor | ||
|