mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 10:02:17 +00:00
10d68d06e6
The mingw ones will be removed in the next commit.
30 lines
679 B
Bash
Executable File
30 lines
679 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$TRAVIS_OS_NAME" != "linux" ] || [ "$CC" != "clang" ]; 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
|
|
|
|
TRAVIS_COMMIT_RANGE=${TRAVIS_COMMIT_RANGE:-HEAD^..}
|
|
if git diff --quiet --name-only --exit-code "$TRAVIS_COMMIT_RANGE" DOCS/ VERSION; then
|
|
exit;
|
|
fi
|
|
|
|
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
|