2015-07-12 20:21:05 +02:00
|
|
|
#!/bin/sh
|
2015-12-05 13:29:34 +01:00
|
|
|
if [ "$TRAVIS_REPO_SLUG" = "smealum/ctrulib" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ -n "$TRAVIS_TAG" ]; then
|
2017-01-16 17:10:43 +01:00
|
|
|
git clone --branch=gh-pages --single-branch --depth 1 --no-checkout https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG docs
|
2015-12-24 12:39:26 +01:00
|
|
|
git clone --branch=master --single-branch --depth 1 https://github.com/devkitPro/3ds-examples examples
|
2015-07-12 20:21:05 +02:00
|
|
|
cd libctru
|
|
|
|
doxygen Doxyfile
|
|
|
|
mv ./docs/html/* ../docs
|
|
|
|
cd ../docs
|
|
|
|
git add --all
|
|
|
|
git commit -m"Doc generated from commit $TRAVIS_COMMIT"
|
|
|
|
git push -f origin gh-pages
|
|
|
|
|
|
|
|
fi
|