https://github.com/szaghi/FLAP
Raw File
Tip revision: 2b3095ef56bf64c8798f1db31474b9582c2d45f9 authored by Stefano Zaghi on 27 July 2015, 15:18:20 UTC
Merge branch 'release/0.6.2'
Tip revision: 2b3095e
makedoc.sh
#!/bin/bash
set -ev # echo what we're doing and fail on errors
GITREPO=$1
git config --global user.name "Stefano Zaghi"
git config --global user.email "stefano.zaghi@gmail.com"
if [[ "${TRAVIS}" = "true" && "${TRAVIS_PULL_REQUEST}" != "false" ]]; then
    # Running under travis during a PR. No access to GH_TOKEN so abort
    # documentation deployment, without throwing an error
    FoBiS.py rule -ex makedoc
    exit 0
fi
# either we are not on TRAVIS and maybe you want to manually dpeloy documentation
# or we are on TRAVIS but not testing a PR so it is safe to deploy documentation
git clone --branch=gh-pages https://${GH_TOKEN}@github.com/szaghi/$GITREPO doc/html
FoBiS.py rule -ex makedoc
cd doc/html
git add -f --all './*'
git commit -m "Travis CI autocommit from travis build ${TRAVIS_BUILD_NUMBER}"
git push -f origin gh-pages
back to top