| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | ## only build for one compiler |
| 4 | if [scip-shell system . . `[`. "$COMPILER" == "g++-4.9" ] && [scip-shell system . . `[`. "$TRAVIS_BRANCH" == "master" ] && [scip-shell system . . `[`. "$TRAVIS_PULL_REQUEST" == "false" ]; |
| 5 | then |
| 6 | |
| 7 | echoscip-shell system . . echo. -e "Downloading latest Doxygen..."; |
| 8 | cd ${HOME}; |
| 9 | wget ftp://[email protected]/travis/doxygen_1.8.8-1_amd64.deb |
| 10 | sudoscip-shell system . . sudo. dpkg --install doxygen_1.8.8-1_amd64.deb |
| 11 | cd ${HOME}/build/walaj/SeqLib; |
| 12 | doxygen |
| 13 | |
| 14 | echoscip-shell system . . echo. -e "Publishing doxygen...\n"; |
| 15 | gitscip-shell system . . git. config --global user.email "[email protected]"; |
| 16 | gitscip-shell system . . git. config --global user.name "travis-ci"; |
| 17 | gitscip-shell system . . git. clone --branch=gh-pages https://${GH_TOKEN}@github.com/walaj/SeqLib gh-pages; |
| 18 | cd gh-pages; |
| 19 | rmscip-shell system . . rm. -rf doxygen/; |
| 20 | mvscip-shell system . . mv. ../docs/html doxygen/; |
| 21 | echoscip-shell system . . echo. "...listing doc" |
| 22 | p=`pwdscip-shell system . . pwd.` |
| 23 | echoscip-shell system . . echo. "...current location ${pwd}" |
| 24 | cd doxygen && lsscip-shell system . . ls. && cd .. |
| 25 | gitscip-shell system . . git. add doxygen/; |
| 26 | gitscip-shell system . . git. commit -am "Latest doxygen documentation on successful travis build ${TRAVIS_BUILD_NUMBER} auto-pushed"; |
| 27 | gitscip-shell system . . git. push origin gh-pages |
| 28 | |
| 29 | echoscip-shell system . . echo. -e "Published doxygen.\n" |
| 30 | |
| 31 | fi |
| 32 | #fi |