Parallelize builds & tests
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
e143caa106
commit
ca04ac48de
2 changed files with 15 additions and 5 deletions
14
.travis.yml
14
.travis.yml
|
@ -166,8 +166,18 @@ script:
|
||||||
-DBUILD_TESTING=on
|
-DBUILD_TESTING=on
|
||||||
-DWERROR=on
|
-DWERROR=on
|
||||||
-G "${GENERATOR}" ..
|
-G "${GENERATOR}" ..
|
||||||
- ${SCAN_BUILD} cmake --build . --config ${BUILD_TYPE} --target install
|
- case "${GENERATOR}" in
|
||||||
- CYCLONEDDS_URI='<CycloneDDS><DDSI2E><Internal><EnableExpensiveChecks>all</EnableExpensiveChecks></Internal></DDSI2E></CycloneDDS>' ctest -T test -C ${BUILD_TYPE}
|
"Unix Makefiles")
|
||||||
|
${SCAN_BUILD} cmake --build . --config ${BUILD_TYPE} --target install -- -j 4
|
||||||
|
;;
|
||||||
|
"Visual Studio "*)
|
||||||
|
${SCAN_BUILD} cmake --build . --config ${BUILD_TYPE} --target install -- -nologo -verbosity:minimal -maxcpucount -p:CL_MPCount=2
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
${SCAN_BUILD} cmake --build . --config ${BUILD_TYPE} --target install
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
- CYCLONEDDS_URI='<CycloneDDS><DDSI2E><Internal><EnableExpensiveChecks>all</EnableExpensiveChecks></Internal></DDSI2E></CycloneDDS>' ctest -j 4 --output-on-failure -T test -C ${BUILD_TYPE}
|
||||||
- if [ "${ASAN}" != "none" ]; then
|
- if [ "${ASAN}" != "none" ]; then
|
||||||
CMAKE_LINKER_FLAGS="-DCMAKE_LINKER_FLAGS=-fsanitize=${USE_SANITIZER}";
|
CMAKE_LINKER_FLAGS="-DCMAKE_LINKER_FLAGS=-fsanitize=${USE_SANITIZER}";
|
||||||
CMAKE_C_FLAGS="-DCMAKE_C_FLAGS=-fsanitize=${USE_SANITIZER}";
|
CMAKE_C_FLAGS="-DCMAKE_C_FLAGS=-fsanitize=${USE_SANITIZER}";
|
||||||
|
|
|
@ -37,14 +37,14 @@ build_script:
|
||||||
- cd build
|
- cd build
|
||||||
- conan install -s arch=%ARCH% -s build_type=%CONFIGURATION% ..
|
- conan install -s arch=%ARCH% -s build_type=%CONFIGURATION% ..
|
||||||
- cmake -DBUILD_TESTING=on -DWERROR=ON -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_INSTALL_PREFIX=%CD%/install -G "%GENERATOR%" ..
|
- cmake -DBUILD_TESTING=on -DWERROR=ON -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_INSTALL_PREFIX=%CD%/install -G "%GENERATOR%" ..
|
||||||
- cmake --build . --config %CONFIGURATION% --target install -- /maxcpucount
|
- cmake --build . --config %CONFIGURATION% --target install -- /nologo /verbosity:minimal /maxcpucount /p:CL_MPCount=2
|
||||||
- cd install/share/CycloneDDS/examples/helloworld
|
- cd install/share/CycloneDDS/examples/helloworld
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -G "%GENERATOR%" ..
|
- cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -G "%GENERATOR%" ..
|
||||||
- cmake --build . --config %CONFIGURATION% -- /maxcpucount
|
- cmake --build . --config %CONFIGURATION% -- /nologo /verbosity:minimal /maxcpucount /p:CL_MPCount=2
|
||||||
- cd ../../../../../..
|
- cd ../../../../../..
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- set "CYCLONEDDS_URI=<CycloneDDS><DDSI2E><Internal><EnableExpensiveChecks>all</EnableExpensiveChecks></Internal></DDSI2E></CycloneDDS>"
|
- set "CYCLONEDDS_URI=<CycloneDDS><DDSI2E><Internal><EnableExpensiveChecks>all</EnableExpensiveChecks></Internal></DDSI2E></CycloneDDS>"
|
||||||
- ctest --test-action test --build-config %CONFIGURATION%
|
- ctest --output-on-failure --parallel 4 --test-action test --build-config %CONFIGURATION%
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue