You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cix.sh 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. # QA pipeline
  3. set -euo pipefail
  4. case "$RUN_ACTIVITY" in
  5. run-db-unit-tests-*)
  6. DB_ENGINE=$(sed "s/run-db-unit-tests-//g" <<< $RUN_ACTIVITY)
  7. ./run-db-unit-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties"
  8. ;;
  9. run-db-integration-tests-*)
  10. DB_ENGINE=$(sed "s/run-db-integration-tests-//g" <<< $RUN_ACTIVITY | cut -d \- -f 1)
  11. CATEGORY=$(sed "s/run-db-integration-tests-//g" <<< $RUN_ACTIVITY | cut -d \- -f 2)
  12. ./run-integration-tests.sh "${CATEGORY}" "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties"
  13. ;;
  14. run-it-released-plugins)
  15. ./run-integration-tests.sh "Plugins" "http://infra.internal.sonarsource.com/jenkins/orch-h2.properties"
  16. ;;
  17. run-perf-tests)
  18. ./run-perf-tests.sh
  19. ;;
  20. run-upgrade-tests-*)
  21. DB_ENGINE=$(sed "s/run-upgrade-tests-//g" <<< $RUN_ACTIVITY)
  22. ./run-upgrade-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties"
  23. ;;
  24. *)
  25. echo "unknown RUN_ACTIVITY = $RUN_ACTIVITY"
  26. exit 1
  27. ;;
  28. esac