libctru/exportdoc.sh

12 lines
452 B
Bash
Raw Normal View History

2015-03-21 14:32:56 +01:00
#!/bin/sh
if [ "$CC" = "clang" ] && [ "$TRAVIS_REPO_SLUG" = "Lectem/ctrulib" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
sudo apt-get install -qq doxygen
git clone --branch=gh-pages --single-branch --depth 1 https://${GH_TOKEN}@github.com/Lectem/ctrulib docs
doxygen Doxyfile
cd docs
git rm -rf ./*
git add --all
git commit -m"Doc generated from Travis build #$TRAVIS_BUILD_NUMBER"
git push -f origin gh-pages
fi