-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure travis to run check_release.py
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
language: python | ||
|
||
# Disable auto-cloning and ... | ||
git: | ||
clone: false | ||
|
||
# ... instead manually fetch and checkout the pull request source branch, which | ||
# is expected by check_release.py | ||
# https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally | ||
install: | ||
- git clone --depth=50 https://github.com/${TRAVIS_REPO_SLUG}.git ${TRAVIS_REPO_SLUG} | ||
- cd ${TRAVIS_REPO_SLUG} | ||
- git fetch origin pull/${TRAVIS_PULL_REQUEST}/head:${TRAVIS_PULL_REQUEST_BRANCH} | ||
- git checkout -qf ${TRAVIS_PULL_REQUEST_BRANCH} | ||
|
||
script: | ||
- python check_release.py |