travis_linux_after_success.sh 714 B

1234567891011121314151617
  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. sh ./tools/travis/travis_push_coverity.sh
  10. fi
  11. sh ./tools/travis/travis_push_release.sh;
  12. else
  13. echo "=== Not in the main repository or not the main build; Skip release scripts ==="
  14. exit 0;
  15. fi