test doc generation
This commit is contained in:
parent
87c06e585d
commit
d8ddd15287
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@
|
||||
Thumbs.db
|
||||
build/
|
||||
lib/
|
||||
docs/
|
17
.travis.yml
17
.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
|
||||
- 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
|
12
exportdoc.sh
Normal file
12
exportdoc.sh
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user