2014-04-30 21:32:10 +00:00
|
|
|
language: cpp
|
2014-05-01 18:50:20 +00:00
|
|
|
|
2014-04-30 21:32:10 +00:00
|
|
|
branches:
|
|
|
|
only:
|
2014-05-07 20:28:34 +00:00
|
|
|
- master
|
2014-05-01 18:50:20 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2014-05-06 21:57:21 +00:00
|
|
|
- secure: "aiH0ZGvhmY7ldfRxngIZHDuWE7ZF5UpVL577hIOUW1P+t+5lOq4hXpTaJgbaEgl0ZQ9GudeFpwx+OvUoxGwLa1wofGGSygeYRl0rfui3XkNx+5RevZ+KOuRQcv+4gJ15twvhP4+XHKfE/B8HWTO5IGN+ntRn+NzXJQLUZFXnOW8=" # GH_AUTH
|
2014-05-01 18:50:20 +00:00
|
|
|
|
2014-04-30 21:32:10 +00:00
|
|
|
before_install:
|
2014-05-01 18:50:20 +00:00
|
|
|
- sudo apt-get update
|
|
|
|
|
2014-04-30 21:32:10 +00:00
|
|
|
install:
|
2014-05-01 18:50:20 +00:00
|
|
|
- sudo apt-get install doxygen
|
|
|
|
|
2014-04-30 21:32:10 +00:00
|
|
|
script:
|
2014-05-06 21:57:21 +00:00
|
|
|
- mkdir gh-pages && cd gh-pages || exit
|
2014-04-30 21:32:10 +00:00
|
|
|
- export GIT_ROOT=`git rev-parse --show-toplevel`
|
|
|
|
- doxygen ../docs/Doxyfile
|
2014-05-01 18:50:20 +00:00
|
|
|
- cd $GIT_ROOT
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
|
|
|
|
- cd gh-pages/html || exit
|
|
|
|
- git init
|
2014-05-06 21:57:21 +00:00
|
|
|
- git remote add origin "https://${GH_AUTH}@github.com/$TRAVIS_REPO_SLUG.git"
|
|
|
|
- git pull --rebase origin gh-pages
|
2014-05-01 18:50:20 +00:00
|
|
|
|
2014-05-06 21:57:21 +00:00
|
|
|
- git config user.email "travis@example.com"
|
2014-05-03 21:32:32 +00:00
|
|
|
- git config user.name "uOFW Doc builder"
|
2014-05-01 18:50:20 +00:00
|
|
|
|
|
|
|
- git add .
|
|
|
|
- git commit -am "Rebuilt docs for $TRAVIS_COMMIT"
|
|
|
|
|
2014-05-06 21:57:21 +00:00
|
|
|
- git push origin gh-pages 2>&1 | sed "s/${GH_AUTH}/[secure]/gi"
|
2014-05-01 18:50:20 +00:00
|
|
|
- fi
|
2014-04-30 21:32:10 +00:00
|
|
|
|