#!/bin/bash

NOFPROC=1
if [ $# -gt 0 ]
  then
    NOFPROC=$1
fi

cd Config
git pull
cd ../Documentation
git pull
cd ../Shared
git pull
git submodule update --remote
mvn clean install -DskipTests -T $NOFPROC
cd ../Platform
git pull
git submodule update --remote
mvn clean install -DskipTests -T $NOFPROC
cd ../Protocol-Adapter-OSLP
git pull
git submodule update --remote
mvn clean install -DskipTests -T $NOFPROC
cd ../Protocol-Adapter-DLMS
git pull
git submodule update --remote
mvn clean install -DskipTests -T $NOFPROC
cd ../Protocol-Adapter-IEC61850
git pull
git submodule update --remote
mvn clean install -DskipTests -T $NOFPROC
cd ../Integration-Tests
git pull
git submodule update --remote --init
mvn clean install -DskipTests -T $NOFPROC
cd ../PublicLightingDemoApp
git pull
git submodule update --remote --init
mvn clean install -DskipTests -T $NOFPROC


#!/bin/bash

NOFPROC=1C

cd Config
git pull
cd ../Documentation
git pull
cd ../Shared
git pull
git submodule update --remote
mvn clean install -T $NOFPROC
cd ../Platform
git pull
git submodule update --remote
mvn clean install -T $NOFPROC
cd ../Protocol-Adapter-OSLP
git pull
git submodule update --remote
mvn clean install -T $NOFPROC
cd ../Protocol-Adapter-DLMS
git pull
git submodule update --remote
mvn clean install -T $NOFPROC
cd ../Protocol-Adapter-IEC61850
git pull
git submodule update --remote
mvn clean install -T $NOFPROC
cd ../Integration-Tests
git pull
git submodule update --remote --init
mvn clean install -T $NOFPROC
cd ../PublicLightingDemoApp
git pull
git submodule update --remote --init
mvn clean install -T $NOFPROC


Build script unittest and uses 1 available processorcore per thread
Build script unittest and uses 1 available processorcore per thread
