diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-03-10 01:01:35 +0100 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-03-14 20:41:32 +0100 |
commit | 5c080ca4e84d9c516d229b8a1248ad5aecf2fe0f (patch) | |
tree | 3c65242e9355f13b4ad27b85d0679abba5b3b30f /.travis.yml | |
parent | 4a85726e5583e7de497077ded4e2ffbcd8b8a0b9 (diff) | |
download | volse-hubzilla-5c080ca4e84d9c516d229b8a1248ad5aecf2fe0f.tar.gz volse-hubzilla-5c080ca4e84d9c516d229b8a1248ad5aecf2fe0f.tar.bz2 volse-hubzilla-5c080ca4e84d9c516d229b8a1248ad5aecf2fe0f.zip |
:construction_worker: Add Travis' GitHub deployment steps.
Changed API documentation deployment to gh_pages to Travis's GitHub Pages
deployment.
Also add Travis GitHub Release Deployment step to offer API
documentation.
Both steps are optional and need to be activated in Travis by setting
GH_TOKEN.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index 2d1771c1b..e1aec9145 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,8 @@ branches: only: - master - dev + # whitelist our tags for release deployments e.g. 2.2 + - /^\d+\.\d+(\.\d+)?(-\S*)?$/ # Install additional software addons: @@ -45,7 +47,6 @@ env: global: # used for doxygen deployment script - DOXYFILE: $TRAVIS_BUILD_DIR/util/Doxyfile - - GHP_REPO_REF: github.com/redmatrix/hubzilla.git # Uncomment if a newer/specific version of Doxygen should be used #- DOXY_VER: 1.8.12 # Code Coverage is slow, no need to have it in every build @@ -123,15 +124,26 @@ after_success: - ./tests/travis/gen_apidocs.sh #after_failure: -# Deploying a release to GitHub when tagging in master -# Waiting for upcoming 'Build Stages' Q1/Q2 2017 to make generation of API docs -# and release packages cleaner. https://github.com/travis-ci/travis-ci/issues/929 +# Deploying release and API documentation to GitHub #before_deploy: -#deploy: -# skip_cleaning: true -# provider: releases -# on: -# tags: true +deploy: + - provider: pages + skip_cleanup: true + local_dir: $TRAVIS_BUILD_DIR/doc/html + github_token: $GH_TOKEN + on: + repo: redmatrix/hubzilla + branch: master + condition: '(-n "$GH_TOKEN") && ("$TRAVIS_JOB_NUMBER" == "${TRAVIS_BUILD_NUMBER}.1")' + # add API documentation to release, could also be used to provide full packages if we want to drop vendor from our repo + - provider: releases + skip_cleanup: true + api_key: $GH_TOKEN + file: 'doc/hubzilla-api-documentation.zip' + on: + repo: redmatrix/hubzilla + tags: true + condition: '(-n "$GH_TOKEN") && ("$TRAVIS_JOB_NUMBER" == "${TRAVIS_BUILD_NUMBER}.1")' #after_deploy: #after_script: |