Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #167 from lclc/travisGithubPageDoxygen
Browse files Browse the repository at this point in the history
Travis github page doxygen fix
  • Loading branch information
randy-waterhouse committed May 21, 2014
2 parents 1c26e83 + 259111f commit 3591547
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ env:
after_success:
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
- scripts/travis_update_online_documentation.sh
- ./scripts/travis_update_online_documentation.sh
32 changes: 18 additions & 14 deletions scripts/travis_update_online_documentation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,29 @@
# Travis script, don't execute manually
# Updates Open Transactions Documentation Github Page with the latest doxygen from master

git config --global user.email "travis@travis-ci.org"
git config --global user.name "travis-ci"
if [ "$TRAVIS_BRANCH" == "master" ]; then

git clone https://${GH_TOKEN}@github.com/Open-Transactions/Documentation.git
git config --global user.email "travis@travis-ci.org"
git config --global user.name "travis-ci"

git clone https://${GH_TOKEN}@github.com/Open-Transactions/Documentation.git

# Commit and Push the Changes
MasterHEAD=$(git rev-parse HEAD)

#Checkout Open-Transactions/Open-Transactions master branch
git checkout master
# Commit and Push the Changes
MasterHEAD=$(git rev-parse HEAD)

#Generate Doxyfile, Version Name = master/LatestCommitHashFromUpstreamMaster
( cat Doxyfile ; echo "PROJECT_NUMBER= master/$MasterHEAD" ) | doxygen - > /dev/null
#Checkout Open-Transactions/Open-Transactions master branch
git checkout master

cp -rf docs/html/* ./Documentation/
#Generate Doxyfile, Version Name = master/LatestCommitHashFromUpstreamMaster
( cat Doxyfile ; echo "PROJECT_NUMBER= master/$MasterHEAD" ) | doxygen - > /dev/null

cd Documentation
cp -rf docs/html/* ./Documentation/

git add -f .
git commit -q -m "Update for master/$MasterHEAD"
git push -f origin gh-pages > /dev/null
cd Documentation

git add -f .
git commit -q -m "Update for master/$MasterHEAD"
git push -f origin gh-pages > /dev/null

fi

0 comments on commit 3591547

Please sign in to comment.