.deployDoxygen.sh 797 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. #
  3. # This sciprt is run by travis-ci and pushes generated
  4. # Doxygen docs to open62541-www
  5. #
  6. git fetch origin coverity_scan
  7. COMMITS=`git log --oneline --since=today.midnight | wc -l`
  8. if [[ "$COMMITS" -le "1" ]]; then
  9. git clone --depth=50 -b gh-pages https://$GITAUTH@github.com/acplt/open62541-www
  10. cd open62541-www
  11. git rm -rf doc
  12. cp -r ../build/doc ./
  13. git add -A doc/*
  14. git config --global user.email "open62541-travis-ci@users.noreply.github.com"
  15. git config --global user.name "Open62541 travis-ci"
  16. git config --global push.default simple
  17. git commit -am "doxygen updated by travis-ci"
  18. git push https://$GITAUTH@github.com/acplt/open62541-www
  19. cd ..
  20. rm -rf open62541-www
  21. else
  22. echo "Not the first commit of the day - no doxygen update required"
  23. fi