aboutsummaryrefslogtreecommitdiffstats
path: root/cix.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-11-13 13:28:58 +0100
committerEric Hartmann <hartmann.eric@gmail.Com>2017-11-14 13:10:17 +0100
commitd9c39ef73d5df4b6a868fbc4802b142fc3a256c4 (patch)
treebcbc1071e0f649e1a752104c20c1e3db02e8e08d /cix.sh
parente6a34bf608d8fab312a9996ac87abb0992525424 (diff)
downloadsonarqube-d9c39ef73d5df4b6a868fbc4802b142fc3a256c4.tar.gz
sonarqube-d9c39ef73d5df4b6a868fbc4802b142fc3a256c4.zip
Speed-up execute of categories in CIX
Diffstat (limited to 'cix.sh')
-rwxr-xr-xcix.sh36
1 files changed, 12 insertions, 24 deletions
diff --git a/cix.sh b/cix.sh
index 8bd7fa7dc67..073f4b76a52 100755
--- a/cix.sh
+++ b/cix.sh
@@ -3,16 +3,6 @@
set -euo pipefail
-function runCategory {
- mvn verify \
- -f tests/pom.xml \
- -Dcategory=$CATEGORY \
- -Dorchestrator.configUrl=http://infra.internal.sonarsource.com/jenkins/orch-$DB_ENGINE.properties \
- -Dorchestrator.workspace=target/$CATEGORY \
- -Dwith-db-drivers \
- -B -e -V
-}
-
case "$RUN_ACTIVITY" in
run-db-unit-tests-*)
@@ -32,35 +22,27 @@ case "$RUN_ACTIVITY" in
case "$CATEGORY_GROUP" in
Category1)
- CATEGORY=Category1 && runCategory
- CATEGORY=authorization && runCategory
- CATEGORY=measure && runCategory
- CATEGORY=qualityGate && runCategory
- CATEGORY=source && runCategory
+ CATEGORY="Category1|authorization|measure|qualityGate|source"
;;
Category2)
- CATEGORY=Category2 && runCategory
- CATEGORY=test && runCategory
- CATEGORY=qualityModel && runCategory
+ CATEGORY="Category2|test|qualityModel"
;;
Category3)
- CATEGORY=Category3 && runCategory
+ CATEGORY="Category3"
;;
Category4)
- CATEGORY=Category4 && runCategory
- CATEGORY=duplication && runCategory
+ CATEGORY="Category4|duplication"
;;
Category5)
- CATEGORY=Category5 && runCategory
+ CATEGORY="Category5"
;;
Category6)
- CATEGORY=Category6 && runCategory
- CATEGORY=organization && runCategory
+ CATEGORY="Category6|organization"
;;
*)
@@ -69,6 +51,12 @@ case "$RUN_ACTIVITY" in
;;
esac
+ mvn verify \
+ -f tests/pom.xml \
+ -Dcategory="$CATEGORY" \
+ -Dorchestrator.configUrl="http://infra.internal.sonarsource.com/jenkins/orch-$DB_ENGINE.properties" \
+ -Pwith-db-drivers \
+ -B -e -V
fi
;;