mirror of https://github.com/mpv-player/mpv
travis: rebuild website for updated docs on push
This commit is contained in:
parent
4236321835
commit
e955ae9000
|
@ -12,6 +12,8 @@ env:
|
||||||
global:
|
global:
|
||||||
# Coverity token
|
# Coverity token
|
||||||
- secure: "H21mSRlMhk4BKS0xHZvCFGJxteCP0hRVUxTuNfM2Z9HBsyutuLEYMtViLO86VtM+Tqla3xXPzUdS4ozLwI72Ax/5ZUDXACROj73yW6QhFB5D6rLut12+FjqC7M33Qv2hl0xwgNBmR5dsm1ToP37+Wn+ecJQNvN8fkTXF+HVzOEw="
|
- secure: "H21mSRlMhk4BKS0xHZvCFGJxteCP0hRVUxTuNfM2Z9HBsyutuLEYMtViLO86VtM+Tqla3xXPzUdS4ozLwI72Ax/5ZUDXACROj73yW6QhFB5D6rLut12+FjqC7M33Qv2hl0xwgNBmR5dsm1ToP37+Wn+ecJQNvN8fkTXF+HVzOEw="
|
||||||
|
# Travis token for mpv.io
|
||||||
|
- secure: "nlTVLJK6kRhtXvhKCoJ3YdFGHuKaq/eHowfPw25hqRWuBOZd+HjHY5KIYjV7SxuKFDpJE4GpNcvA3Q31nsqomxpkLYgrwjg6TSazN7ZP+x85ZgV1QGFebrPfGm2n5UR5CAPAwFoeF3pZheLi4bajVzwq1fWW+x3grS188P9OZso="
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
- gcc
|
- gcc
|
||||||
|
@ -42,6 +44,7 @@ script:
|
||||||
- ./bootstrap.py
|
- ./bootstrap.py
|
||||||
- ./waf configure
|
- ./waf configure
|
||||||
- ./waf build
|
- ./waf build
|
||||||
|
after_script: TOOLS/travis-rebuild-website
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
#!/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
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in New Issue