1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00

travis: trigger website rebuild only on docs changes

This commit is contained in:
Ricardo Constantino 2016-09-04 14:59:54 +01:00 committed by wm4
parent e955ae9000
commit d889d1fbaa

View File

@ -10,6 +10,11 @@ if [ "x$TRAVIS_BRANCH" != "xmaster" ]; then
exit;
fi
TRAVIS_COMMIT_RANGE=${TRAVIS_COMMIT_RANGE:-HEAD^..}
if git diff --quiet --name-only --exit-code "$TRAVIS_COMMIT_RANGE" DOCS/; then
exit;
fi
body='{
"request": {
"branch":"master"