1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #!/bin/bash
- echo "Deploying docs to website osqp.org..."
- export PATH=${DEPS_DIR}/miniconda/bin:$PATH
- hash -r
- source activate testenv
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
-
-
- sudo add-apt-repository ppa:libreoffice/ppa -y
- sudo apt-get update -q -y
- sudo apt-get install -y doxygen
- conda install -y sphinx
- conda install -y -c conda-forge sphinx_rtd_theme breathe
-
- cd ${TRAVIS_BUILD_DIR}/docs/
-
- make html
-
- cd $HOME/
- git clone "https://${OSQP_DOCS_DEPLOY_GH_TOKEN}@github.com/oxfordcontrol/osqp.org.git"
- cd osqp.org/src/docs/
-
- git config user.name "OSQP Docs Builder"
- git config user.email "$OSQP_DOCS_DEPLOY_EMAIL"
-
- cp -R ${TRAVIS_BUILD_DIR}/docs/_build/html/* ./
-
- git add -A .
- git commit --allow-empty -m "Generated docs for commit $TRAVIS_COMMIT"
-
- git push -q origin master
- fi
|