This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients brett.cannon, steve.dower, vstinner
Date 2020-03-05.22:21:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583446900.09.0.913153949008.issue39837@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-03-05 22:21:40vstinnersetrecipients: + vstinner, brett.cannon, steve.dower
2020-03-05 22:21:40vstinnersetmessageid: <1583446900.09.0.913153949008.issue39837@roundup.psfhosted.org>
2020-03-05 22:21:40vstinnerlinkissue39837 messages
2020-03-05 22:21:39vstinnercreate