1
1
Fork 0
mirror of https://github.com/trafi/maybe-result-cpp synced 2024-05-08 23:16:11 +02:00
maybe-result-cpp/export_doc.sh
2016-07-10 17:30:15 +03:00

23 lines
559 B
Bash

#!/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
sudo apt-add-repository -y ppa:kedazo/doxygen-updates-precise
sudo apt-get update
sudo apt-get install -y doxygen
doxygen
pip install ghp-import --user `whoami`
ghp-import -n html
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages