diff options
author | Wu Xiaotian <[email protected]> | 2019-04-18 17:48:49 +0800 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-04-19 23:19:49 +0200 |
commit | 5d3cb1cb0ef0a10e178c01076f3e16ef248271de (patch) | |
tree | d4f0ba54b84d978958375f9096f0bd7feb9d57f9 /.travis.yml | |
parent | 371307cfffe9e35c8f45dd5fabfc07f260209078 (diff) | |
download | mate-user-guide-5d3cb1cb0ef0a10e178c01076f3e16ef248271de.tar.bz2 mate-user-guide-5d3cb1cb0ef0a10e178c01076f3e16ef248271de.tar.xz |
[ci] show help pages on website
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index c5b739c..51f4f21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,10 @@ language: bash services: - docker +branches: + except: + - gh-pages + before_install: - curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build - chmod +x docker-build @@ -19,6 +23,16 @@ script: - ./docker-build --name ${DISTRO} --verbose --config .travis.yml --build autotools deploy: + - provider: pages + github-token: $GITHUB_TOKEN + #keep-history: true + skip_cleanup: true + committer-from-gh: true + target-branch: gh-pages + local-dir: help-html + on: + all_branches: true + condition: ${DISTRO} =~ ^fedora.*$ - provider: script script: ./docker-build --verbose --config .travis.yml --release github skip_cleanup: true @@ -26,6 +40,17 @@ deploy: tags: true condition: "${TRAVIS_TAG} =~ ^v.*$ && ${DISTRO} =~ ^fedora.*$" +after_success: + - 'if [[ "$TRAVIS_SECURE_ENV_VARS" == "true" && "$TRAVIS_PULL_REQUEST" != "false" && ${DISTRO} =~ ^fedora.*$ ]]; then + REPO_SLUG_ARRAY=(${TRAVIS_REPO_SLUG//\// }); + REPO_NAME=${REPO_SLUG_ARRAY[1]}; + URL="https://${REPO_NAME}.mate-desktop.dev"; + COMMENT="help pages deployed"; + curl -H "Authorization: token $GITHUB_TOKEN" -X POST + -d "{\"state\": \"success\", \"description\": \"$COMMENT\", \"context\":\"scan-build\", \"target_url\": \"$URL\"}" + https://api.github.com/repos/${TRAVIS_REPO_SLUG}/statuses/${TRAVIS_PULL_REQUEST_SHA}; + fi' + env: - DISTRO="archlinux/base" - DISTRO="debian:sid" @@ -66,6 +91,7 @@ requires: - make - mate-common - redhat-rpm-config + - yelp-tools ubuntu: - gettext @@ -86,6 +112,7 @@ before_scripts: - fi after_scripts: + - yelp-build html -o help-html mate-user-guide/C/index.docbook - make distcheck releases: |