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.

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # Run integration tests. SonarQube must be already built in order to
  3. # make the ZIP file available for tests.
  4. # Arguments:
  5. # 1. the category of tests. Possible values: "Category1", "Category2" ,"Category3", "Category4", "Category5" and "Plugins"
  6. # 2. the path to Orchestrator properties file. If empty, then default values are used. Example: "file:///Users/me/orchestrator.properties"
  7. #
  8. # Examples:
  9. # ./run-integration-tests.sh "Category1" "file:///Users/me/orchestrator-mysql56.properties"
  10. # ./run-integration-tests.sh "Category1" ""
  11. set -euo pipefail
  12. CATEGORY=$1
  13. ORCHESTRATOR_CONFIG_URL=$2
  14. shift 2
  15. cd tests/plugins
  16. mvn clean package -B -e -V
  17. cd ..
  18. mvn verify \
  19. -Dcategory=$CATEGORY \
  20. -Dorchestrator.configUrl=$ORCHESTRATOR_CONFIG_URL \
  21. -Dwith-db-drivers \
  22. -B -e -V $*