1
1
mirror of https://github.com/trafi/maybe-result-cpp synced 2024-11-23 02:43:26 +01:00
maybe-result-cpp/export_doc.sh
2016-07-10 17:22:51 +03:00

20 lines
445 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
doxygen
pip install ghp-import --user `whoami`
ghp-import -n html
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages