We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36c9f6 commit 3b2cd51Copy full SHA for 3b2cd51
.travis.yml
@@ -8,7 +8,8 @@ cache:
8
before_install:
9
- |
10
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
11
- TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH"
+ PR_FIRST=$(curl -s https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST}.patch | head -1 | grep -o -E '\b[0-9a-f]{40}\b' | tr -d '\n')
12
+ TRAVIS_COMMIT_RANGE=$PR_FIRST^..$TRAVIS_COMMIT
13
fi
14
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/' || {
15
echo "Only docs were updated, stopping build process."
0 commit comments