.deployDoxygen.sh 767 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. COMMITS=`git log --since=today.midnight --oneline | wc -l`
  7. if [[ "$COMMITS" -le "1" ]]; then
  8. git clone --depth=50 -b gh-pages https://$GITAUTH@github.com/acplt/open62541-www
  9. cd open62541-www
  10. git rm -rf doc
  11. cp -r ../build/doc ./
  12. git add -A doc/*
  13. git config --global user.email "open62541-travis-ci@users.noreply.github.com"
  14. git config --global user.name "Open62541 travis-ci"
  15. git config --global push.default simple
  16. git commit -am "doxygen updated by travis-ci"
  17. git push https://$GITAUTH@github.com/acplt/open62541-www
  18. cd ..
  19. rm -rf open62541-www
  20. else
  21. echo "Not the first commit of the day - no doxygen update required"
  22. fi