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
1 changed files with 5 additions and 0 deletions

View File

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