forked from szaghi/VTKFortran
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakedoc.sh
More file actions
executable file
·19 lines (19 loc) · 854 Bytes
/
makedoc.sh
File metadata and controls
executable file
·19 lines (19 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -ev # echo what we are 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 deploy 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/$GITREPO.git 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 > /dev/null 2>&1