2016-09-04 11:29:11 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ "x$LIBAV" != "xffmpeg-git" ] || [ "x$TRAVIS_OS_NAME" != "xlinux" ]; then
|
|
|
|
# trigger build only on one of the matrix nodes
|
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "x$TRAVIS_BRANCH" != "xmaster" ]; then
|
|
|
|
# only rebuild website with pushes to master
|
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
2016-09-04 13:59:54 +00:00
|
|
|
TRAVIS_COMMIT_RANGE=${TRAVIS_COMMIT_RANGE:-HEAD^..}
|
|
|
|
if git diff --quiet --name-only --exit-code "$TRAVIS_COMMIT_RANGE" DOCS/; then
|
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
2016-09-04 11:29:11 +00:00
|
|
|
body='{
|
|
|
|
"request": {
|
|
|
|
"branch":"master"
|
|
|
|
}}'
|
|
|
|
|
|
|
|
curl -s -X POST \
|
|
|
|
-H "Content-Type: application/json" \
|
|
|
|
-H "Accept: application/json" \
|
|
|
|
-H "Travis-API-Version: 3" \
|
|
|
|
-H "Authorization: token $WEBSITE_TRAVIS_TOKEN" \
|
|
|
|
-d "$body" \
|
|
|
|
https://api.travis-ci.org/repo/mpv-player%2Fmpv.io/requests
|