diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/travis/install-build-depends | 2 | ||||
| -rwxr-xr-x | tests/travis/push-documentation | 47 |
2 files changed, 48 insertions, 1 deletions
diff --git a/tests/travis/install-build-depends b/tests/travis/install-build-depends index 3e543d91..c1c66dd1 100755 --- a/tests/travis/install-build-depends +++ b/tests/travis/install-build-depends @@ -16,7 +16,7 @@ else case "$CONFIG" in full*) - sudo apt-get install -qq doxygen libgstreamer1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly + sudo apt-get install -qq doxygen graphviz libgstreamer1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly ;; esac fi diff --git a/tests/travis/push-documentation b/tests/travis/push-documentation new file mode 100755 index 00000000..ed5609a8 --- /dev/null +++ b/tests/travis/push-documentation @@ -0,0 +1,47 @@ +#!/bin/bash + +# Add ssh push key +eval "$(ssh-agent -s)" +echo $PUSH_KEY_REPO_DOC_QXMPP_ORG | base64 -d | unxz | ssh-add - + +# Set up git +git config --global user.email "docsbot@qxmpp.org" +git config --global user.name "QXmpp Docs Bot" + +# +# Build documentation +# + +echo '-------------------------------------------' +echo 'Building documentation' +echo '-------------------------------------------' + +mkdir build +cd build + +cmake .. -DBUILD_DOCUMENTATION=ON + +make doc + +# +# Push documentation +# + +echo '-------------------------------------------' +echo 'Cloning doc.qxmpp.org repository' +echo '-------------------------------------------' + +git clone ssh://git@github.com/qxmpp-project/doc.qxmpp.org + +echo '-------------------------------------------' +echo 'Commiting and pushing documentation' +echo '-------------------------------------------' + +# delete old dev docs +rm -rf doc.qxmpp.org/qxmpp-dev +cp -r doc/html doc.qxmpp.org/qxmpp-dev + +git -C doc.qxmpp.org add . +git -C doc.qxmpp.org commit -m "Add documentation for QXmpp master" +git -C doc.qxmpp.org push + |
