2016-03-02 17:49:10 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# Run upgrade tests. SonarQube must be already built in order to
|
|
|
|
# make the ZIP file available for tests.
|
|
|
|
|
|
|
|
# Arguments:
|
|
|
|
# 1. the path to Orchestrator properties file. If empty, then default values are used. Example: "file:///Users/me/orchestrator.properties"
|
|
|
|
#
|
|
|
|
# Example:
|
2016-06-29 10:43:09 +02:00
|
|
|
# ./run-upgrade-tests.sh "file:///Users/me/orchestrator-mysql56.properties"
|
2016-03-02 17:49:10 +01:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
ORCHESTRATOR_CONFIG_URL=$1
|
|
|
|
shift 1
|
|
|
|
|
2017-06-23 21:31:56 +02:00
|
|
|
cd tests
|
2016-03-02 17:49:10 +01:00
|
|
|
mvn verify \
|
|
|
|
-Pwith-db-drivers \
|
|
|
|
-Dorchestrator.configUrl=$ORCHESTRATOR_CONFIG_URL \
|
2017-06-23 21:31:56 +02:00
|
|
|
-Dcategory=Upgrade -B -e -V $*
|