travis_linux_after_success.sh 674 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. set -ev
  3. if [ $ANALYZE = "true" ]; then
  4. echo "=== Skipping after_success scripts in ANALYZE mode ==="
  5. else
  6. echo "=== Executing after_success scripts ==="
  7. if [[ "$CC" = "gcc" && "${TRAVIS_REPO_SLUG}" = "open62541/open62541" ]]; then
  8. if [[ ${TRAVIS_PULL_REQUEST} == "false" ]]; then
  9. if [[ ${TRAVIS_BRANCH} == "0.2" ]]; then
  10. sh ./tools/travis/travis_push_doc.sh
  11. fi
  12. if [[ ${TRAVIS_BRANCH} == "master" ]]; then
  13. sh ./tools/travis/travis_push_coverity.sh
  14. fi
  15. fi
  16. sh ./tools/travis/travis_push_release.sh;
  17. else
  18. echo " Skipping push scripts since not gcc and/or ${TRAVIS_REPO_SLUG} is not the main repo"
  19. fi
  20. fi