Skip to content

Commit

Permalink
WiP: Push snapshot API docs to docs repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvensson committed Mar 16, 2016
1 parent 09a859f commit 34c76bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ addons:
apt:
packages:
- cython
- doxygen
- lcov
- libao-dev
- libasound2-dev
Expand Down
15 changes: 12 additions & 3 deletions utils/travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,28 @@ function linux_build_analysis {
scan-build-3.7 $CFG -o build-analysis/clang \
./waf build --notests

# Generate documentation
doxygen Doxyfile
(cd src/clients/lib/xmmsclient && doxygen Doxyfile)

if [[ -n $CI_USER_TOKEN ]]; then
function github_docs_clone {
git clone https://$CI_USER_TOKEN@github.com/xmms2/docs.git github-docs
}

retry "github_docs_clone" "Fetching xmms2/docs.git repo"

rm -rf github-docs/clang
rm -rf github-docs/clang github-docs/api

mv build-analysis/clang/* github-docs/clang

mkdir github-docs/api
mv doc/xmms2/html github-docs/api/xmms2
mv doc/xmmsclient/html github-docs/api/xmmsclient

cd github-docs
git add clang
git commit -a -m "Automatic update of Clang Static Analysis"
git add clang api
git commit -a -m "Automatic update of API docs / Clang Static Analysis"

function github_docs_push {
git push
Expand Down

0 comments on commit 34c76bc

Please sign in to comment.