From d8ddd15287e4890ab64835190f4319be66638175 Mon Sep 17 00:00:00 2001 From: Lectem Date: Sat, 21 Mar 2015 14:32:56 +0100 Subject: [PATCH] test doc generation --- .gitignore | 1 + .travis.yml | 19 ++++++++++++++++++- exportdoc.sh | 12 ++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 exportdoc.sh diff --git a/.gitignore b/.gitignore index 0a8db49..f9bfa40 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ Thumbs.db build/ lib/ +docs/ \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index c2e5193..c2fb70b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,27 @@ before_install: - wget http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/devkitARMupdate.pl - export DEVKITPRO=/home/travis/devkitPro - export DEVKITARM=${DEVKITPRO}/devkitARM + - sudo add-apt-repository --yes ppa:libreoffice/ppa + - sudo apt-get update -qq install: - sudo perl devkitARMupdate.pl + +env: + global: + - secure: "O+zG6TSo9y2XQOUn8n+LcOIKg40ONpLgdZDYPnGjKM+OYp5dffLUjIWQj7PCknhL7HO+fObLGroLvDI7lWOvD81FhsTl5axGxt8NrtslfAnv6SIBom4dww1acqHTo0C1le1+mdhbB1anm7gYCAdDn3TApWBWbGkAOCkS5JzwqC4=" + + script: - cd libctru - - make \ No newline at end of file + - make + - cd .. + + +after_success: + - #Build the doxygen files and upload to GH pages + - git config --global user.email "travis@travis-ci.org" + - git config --global user.name "TravisCI-DocBuilder" + - #export doc only once, in gcc job + - sh exportdoc.sh \ No newline at end of file diff --git a/exportdoc.sh b/exportdoc.sh new file mode 100644 index 0000000..182ea03 --- /dev/null +++ b/exportdoc.sh @@ -0,0 +1,12 @@ +#!/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 \ No newline at end of file