2014-04-30 21:32:10 +00:00
|
|
|
language: cpp
|
2014-05-01 18:50:20 +00:00
|
|
|
|
2014-04-30 21:32:10 +00:00
|
|
|
branches:
|
2014-05-11 12:19:52 +00:00
|
|
|
only:
|
|
|
|
- master
|
2014-05-01 18:50:20 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2014-05-06 21:57:21 +00:00
|
|
|
- secure: "aiH0ZGvhmY7ldfRxngIZHDuWE7ZF5UpVL577hIOUW1P+t+5lOq4hXpTaJgbaEgl0ZQ9GudeFpwx+OvUoxGwLa1wofGGSygeYRl0rfui3XkNx+5RevZ+KOuRQcv+4gJ15twvhP4+XHKfE/B8HWTO5IGN+ntRn+NzXJQLUZFXnOW8=" # GH_AUTH
|
2014-05-01 18:50:20 +00:00
|
|
|
|
2014-04-30 21:32:10 +00:00
|
|
|
before_install:
|
2014-05-14 18:39:28 +00:00
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get remove mingw* -q
|
2014-05-01 18:50:20 +00:00
|
|
|
|
2014-04-30 21:32:10 +00:00
|
|
|
install:
|
2014-05-14 18:39:28 +00:00
|
|
|
- sudo apt-get install doxygen g++-mingw-w64-i686 -q
|
2014-05-09 16:13:33 +00:00
|
|
|
- cd ..
|
|
|
|
- wget https://dl.dropboxusercontent.com/u/23414835/PSPSDK/psptoolchain_1.0_amd64.deb -O psptoolchain.deb
|
|
|
|
- sudo dpkg --install psptoolchain.deb
|
|
|
|
- source /etc/profile.d/psptoolchain.sh
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2014-05-01 18:50:20 +00:00
|
|
|
|
2014-04-30 21:32:10 +00:00
|
|
|
script:
|
2014-05-09 16:13:33 +00:00
|
|
|
- make -k
|
|
|
|
|
|
|
|
after_script:
|
|
|
|
- if [[ $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_BRANCH == 'master' ]]; then
|
|
|
|
- mkdir gh-pages && cd gh-pages
|
2014-05-14 18:39:28 +00:00
|
|
|
- git clone "https://github.com/$TRAVIS_REPO_SLUG.git" --branch gh-pages .
|
|
|
|
- export GIT_ROOT=$TRAVIS_BUILD_DIR
|
|
|
|
|
|
|
|
- if [[ $(git -C $GIT_ROOT log --pretty=%s -1 $TRAVIS_COMMIT) != *"[docs-skip]"* ]]; then
|
|
|
|
- doxygen ../docs/Doxyfile
|
|
|
|
- fi
|
|
|
|
|
|
|
|
- if [[ $(git -C $GIT_ROOT log --pretty=%s -1 $TRAVIS_COMMIT) == *"[exec-build]"* || $(git -C $GIT_ROOT diff-tree --name-only --no-commit-id $TRAVIS_COMMIT $GIT_ROOT/utils) ]]; then
|
|
|
|
- cd $GIT_ROOT/utils
|
|
|
|
- mkdir -p ../gh-pages/executables
|
|
|
|
|
|
|
|
- make mrproper all CC=gcc -m32 CXX=g++ -m32
|
|
|
|
- for file in $(find */ -executable -type f); do
|
|
|
|
- mv $file "../gh-pages/executables/$(basename $file)-i386"
|
|
|
|
- done
|
|
|
|
|
|
|
|
- make mrproper all CC="i686-w64-mingw32-gcc -m32" CXX="i686-w64-mingw32-g++ -m32"
|
|
|
|
- for file in $(find */ -executable -type f); do
|
|
|
|
- mv $file "../gh-pages/executables/$(basename $file)-i386.exe"
|
|
|
|
- done
|
|
|
|
- fi
|
|
|
|
|
|
|
|
- cd $GIT_ROOT/gh-pages
|
2014-05-01 18:50:20 +00:00
|
|
|
|
2014-05-06 21:57:21 +00:00
|
|
|
- git config user.email "travis@example.com"
|
2014-05-03 21:32:32 +00:00
|
|
|
- git config user.name "uOFW Doc builder"
|
2014-05-01 18:50:20 +00:00
|
|
|
|
2014-05-14 18:39:28 +00:00
|
|
|
- git remote set-url origin "https://${GH_AUTH}@github.com/$TRAVIS_REPO_SLUG.git"
|
|
|
|
- git checkout gh-pages
|
2014-05-01 18:50:20 +00:00
|
|
|
- git add .
|
|
|
|
- git commit -am "Rebuilt docs for $TRAVIS_COMMIT"
|
2014-05-08 14:30:14 +00:00
|
|
|
|
2014-05-14 18:39:28 +00:00
|
|
|
- git push origin gh-pages 2>&1 | sed "s/${GH_AUTH}/[secure]/gi"
|
2014-05-01 18:50:20 +00:00
|
|
|
- fi
|
2014-04-30 21:32:10 +00:00
|
|
|
|