Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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_GROUP=$(sed "s/run-db-integration-tests-//g" <<< $RUN_ACTIVITY | cut -d \- -f 2)
  12. if [[ "$GITHUB_BRANCH" == "PULLREQUEST-"* ]] && [[ "$DB_ENGINE" != "postgresql93" ]]; then
  13. # execute PR QA only on postgres
  14. exit 0
  15. else
  16. mvn clean package -B -e -V -f tests/plugins/pom.xml
  17. case "$CATEGORY_GROUP" in
  18. Category1)
  19. CATEGORY="Category1|authorization|measure|qualityGate|source"
  20. ;;
  21. Category2)
  22. CATEGORY="issue|test|qualityModel"
  23. ;;
  24. Category3)
  25. CATEGORY="Category3|component|project"
  26. ;;
  27. Category4)
  28. CATEGORY="Category4|duplication"
  29. ;;
  30. Category5)
  31. CATEGORY="Category5"
  32. ;;
  33. Category6)
  34. CATEGORY="Category6|organization"
  35. ;;
  36. *)
  37. echo "unknown CATEGORY_GROUP: $CATEGORY_GROUP"
  38. exit 1
  39. ;;
  40. esac
  41. mvn verify \
  42. -f tests/pom.xml \
  43. -Dcategory="$CATEGORY" \
  44. -Dorchestrator.configUrl="http://infra.internal.sonarsource.com/jenkins/orch-$DB_ENGINE.properties" \
  45. -Pwith-db-drivers \
  46. -B -e -V
  47. fi
  48. ;;
  49. run-it-released-plugins)
  50. ./run-integration-tests.sh "Plugins" "http://infra.internal.sonarsource.com/jenkins/orch-h2.properties"
  51. ;;
  52. run-perf-tests)
  53. ./run-perf-tests.sh
  54. ;;
  55. run-upgrade-tests-*)
  56. DB_ENGINE=$(sed "s/run-upgrade-tests-//g" <<< $RUN_ACTIVITY)
  57. if [[ "$GITHUB_BRANCH" == "PULLREQUEST-"* ]] && [[ "$DB_ENGINE" != "postgresql93" ]]; then
  58. exit 0
  59. else
  60. ./run-upgrade-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties"
  61. fi
  62. ;;
  63. *)
  64. echo "unknown RUN_ACTIVITY = $RUN_ACTIVITY"
  65. exit 1
  66. ;;
  67. esac