Skip to content

Commit

Permalink
Configure travis to run check_release.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukpueh committed Feb 4, 2020
1 parent 19c0ebc commit 8c2af51
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
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

0 comments on commit 8c2af51

Please sign in to comment.