aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-14 11:14:10 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-16 13:21:23 +0100
commitdc740d716b371cf8e017df0c37ea4d8f45ae0734 (patch)
tree8404cc224b22d6cd19ccfcee5ee1bd1298022f49 /build.sh
parent0b25cac89ed71c37bea0d76866ddedf12c5dfdf5 (diff)
downloadsonarqube-dc740d716b371cf8e017df0c37ea4d8f45ae0734.tar.gz
sonarqube-dc740d716b371cf8e017df0c37ea4d8f45ae0734.zip
Speed-up build
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 5527fa3055e..55848e157f3 100755
--- a/build.sh
+++ b/build.sh
@@ -1,3 +1,5 @@
#!/bin/sh
-mvn clean install $*
+# Parallel executions of maven modules and tests.
+# Half of CPU core are used in to keep other half for OS and other programs.
+mvn clean install -e -B -T0.5C -DforkCount=0.5C $*