Added an option to build the project in parallel

with this change we've added some scripts to run the build in parallel. It makes the build ~ 2 times faster

fixes #190
This commit is contained in:
Marcin Grzejszczak
2017-01-16 13:05:15 +01:00
parent 8d23d934c9
commit 12aa340e46
5 changed files with 87 additions and 0 deletions

10
scripts/parallelBuild.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
source common.sh || source scripts/common.sh || echo "No common.sh script found..."
set -e
[[ -z "${CORES}" ]] && CORES=8
echo -e "\n\nRUNNING PARALLEL BUILD WITH [${CORES}] CORES\n\n"
./mvnw clean install -Pintegration,docs -T ${CORES} -Dinvoker.parallelThreads=${CORES}