2016-07-10 16:11:04 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
if [ "$TRAVIS_BRANCH" != 'master' ]; then
|
|
|
|
echo "skipping doc export because branch is not master"
|
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$DOC" != "true" ]; then
|
|
|
|
echo "skipping doc export because not enabled for this build"
|
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "exporting docs"
|
|
|
|
|
|
|
|
export PATH=$HOME/.local/bin:$PATH
|
2016-07-10 16:30:15 +02:00
|
|
|
sudo apt-add-repository -y ppa:kedazo/doxygen-updates-precise
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y doxygen
|
2016-07-10 16:11:04 +02:00
|
|
|
doxygen
|
|
|
|
pip install ghp-import --user `whoami`
|
|
|
|
ghp-import -n html
|
|
|
|
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|