aboutsummaryrefslogtreecommitdiffstats
path: root/run-db-unit-tests.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-02-05 16:51:05 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-02-10 17:13:16 +0100
commite851411f7fd6a1e9f8e94caf92ef10699acb03a9 (patch)
treeadfa5ee5511d0e4b6c7410279d302b42c9d987ee /run-db-unit-tests.sh
parenta1be1bb19a200cf6cc2e2685972623df96e553fd (diff)
downloadsonarqube-e851411f7fd6a1e9f8e94caf92ef10699acb03a9.tar.gz
sonarqube-e851411f7fd6a1e9f8e94caf92ef10699acb03a9.zip
Enable QA pipeline at SonarSource
Diffstat (limited to 'run-db-unit-tests.sh')
-rwxr-xr-xrun-db-unit-tests.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/run-db-unit-tests.sh b/run-db-unit-tests.sh
new file mode 100755
index 00000000000..041d3b1def1
--- /dev/null
+++ b/run-db-unit-tests.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -euo pipefail
+
+ORCHESTRATOR_CONFIG_URL=$1
+shift
+
+mvn verify \
+ -pl :sonar-db \
+ -Dorchestrator.configUrl=$ORCHESTRATOR_CONFIG_URL \
+ -Dwith-db-drivers \
+ -B -e -V $*