travis_linux_after_success.sh 664 B

12345678910111213141516
  1. #!/bin/bash
  2. set -ev
  3. # We only want to push the docs once, so we just take the travis run where MINGW=true which is only enabled once
  4. if [ $MINGW = "true" ] && [ "${TRAVIS_REPO_SLUG}" = "open62541/open62541" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
  5. echo "=== Executing after_success scripts ==="
  6. # List branches where the doc should be pushed to the webpage
  7. if [ "${TRAVIS_BRANCH}" = "master" ] || [ "${TRAVIS_BRANCH}" = "0.3" ]; then
  8. sh ./tools/travis/travis_push_doc.sh
  9. fi
  10. sh ./tools/travis/travis_push_release.sh;
  11. else
  12. echo "=== Not in the main repository or not the main build; Skip release scripts ==="
  13. exit 0;
  14. fi