Skip to content

Commit 8c2af51

Browse files
committed
Configure travis to run check_release.py
1 parent 19c0ebc commit 8c2af51

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: python
2+
3+
# Disable auto-cloning and ...
4+
git:
5+
clone: false
6+
7+
# ... instead manually fetch and checkout the pull request source branch, which
8+
# is expected by check_release.py
9+
# https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally
10+
install:
11+
- git clone --depth=50 https://github.com/${TRAVIS_REPO_SLUG}.git ${TRAVIS_REPO_SLUG}
12+
- cd ${TRAVIS_REPO_SLUG}
13+
- git fetch origin pull/${TRAVIS_PULL_REQUEST}/head:${TRAVIS_PULL_REQUEST_BRANCH}
14+
- git checkout -qf ${TRAVIS_PULL_REQUEST_BRANCH}
15+
16+
script:
17+
- python check_release.py

0 commit comments

Comments
 (0)