Message363458
Instead of not running the job, is it technically possible to modify the jobs to do nothing for docs only changes?
.travis.yml works like that:
before_install:
- set -e
- |
# Check short-circuit conditions
if [[ "${TESTING}" != "docs" && "${TESTING}" != "doctest" ]]
then
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]
then
echo "Not a PR, doing full build."
else
# Pull requests are slightly complicated because $TRAVIS_COMMIT_RANGE
# may include more changes than desired if the history is convoluted.
# Instead, explicitly fetch the base branch and compare against the
# merge-base commit.
git fetch -q origin +refs/heads/$TRAVIS_BRANCH
changes=$(git diff --name-only HEAD $(git merge-base HEAD FETCH_HEAD))
echo "Files changed:"
echo "$changes"
if ! echo "$changes" | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'
then
echo "Only docs were updated, stopping build process."
exit
fi
fi
fi |
|
Date |
User |
Action |
Args |
2020-03-05 22:21:40 | vstinner | set | recipients:
+ vstinner, brett.cannon, steve.dower |
2020-03-05 22:21:40 | vstinner | set | messageid: <1583446900.09.0.913153949008.issue39837@roundup.psfhosted.org> |
2020-03-05 22:21:40 | vstinner | link | issue39837 messages |
2020-03-05 22:21:39 | vstinner | create | |
|