From 6aa03311a8ee5dd56e8e8a30a064f9ffef43313a Mon Sep 17 00:00:00 2001 From: Sergey Alexandrov Date: Tue, 29 Oct 2019 14:39:41 +0100 Subject: [PATCH] Add a new Azure pipeline for Ubuntu 19.10 The new pipeline is a copy of the old 16.04 pipeline, the only difference is which Docker image is used. This commit also removes the `-Wabi` compiler flag as proposed in #3347. --- ...ild-ubuntu.yml => build-ubuntu-16-04.yaml} | 2 +- .ci/azure-pipelines/build-ubuntu-19-10.yaml | 53 +++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) rename .ci/azure-pipelines/{build-ubuntu.yml => build-ubuntu-16-04.yaml} (97%) create mode 100644 .ci/azure-pipelines/build-ubuntu-19-10.yaml diff --git a/.ci/azure-pipelines/build-ubuntu.yml b/.ci/azure-pipelines/build-ubuntu-16-04.yaml similarity index 97% rename from .ci/azure-pipelines/build-ubuntu.yml rename to .ci/azure-pipelines/build-ubuntu-16-04.yaml index 7c24a2fe69e..a6003002023 100644 --- a/.ci/azure-pipelines/build-ubuntu.yml +++ b/.ci/azure-pipelines/build-ubuntu-16-04.yaml @@ -12,7 +12,7 @@ jobs: container: env1604 variables: BUILD_DIR: '$(Agent.BuildDirectory)/build' - CMAKE_CXX_FLAGS: '-Wall -Wextra -Wabi -O2' + CMAKE_CXX_FLAGS: '-Wall -Wextra -O2' steps: - script: | mkdir $BUILD_DIR && cd $BUILD_DIR diff --git a/.ci/azure-pipelines/build-ubuntu-19-10.yaml b/.ci/azure-pipelines/build-ubuntu-19-10.yaml new file mode 100644 index 00000000000..bb1b70f382d --- /dev/null +++ b/.ci/azure-pipelines/build-ubuntu-19-10.yaml @@ -0,0 +1,53 @@ +resources: + containers: + - container: env1910 + image: pointcloudlibrary/env:19.10 + +jobs: + - job: ubuntu1910 + displayName: Ubuntu 19.10 + timeoutInMinutes: 0 + pool: + vmImage: 'Ubuntu 16.04' + container: env1910 + variables: + BUILD_DIR: '$(Agent.BuildDirectory)/build' + CMAKE_CXX_FLAGS: '-Wall -Wextra -O2' + steps: + - script: | + mkdir $BUILD_DIR && cd $BUILD_DIR + cmake $(Build.SourcesDirectory) \ + -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS" \ + -DPCL_ONLY_CORE_POINT_TYPES=ON \ + -DBUILD_simulation=ON \ + -DBUILD_surface_on_nurbs=ON \ + -DBUILD_global_tests=ON \ + -DBUILD_examples=ON \ + -DBUILD_tools=ON \ + -DBUILD_apps=ON \ + -DBUILD_apps_3d_rec_framework=ON \ + -DBUILD_apps_cloud_composer=ON \ + -DBUILD_apps_in_hand_scanner=ON \ + -DBUILD_apps_modeler=ON \ + -DBUILD_apps_point_cloud_editor=ON + displayName: 'CMake Configuration' + - script: | + cd $BUILD_DIR + # Compiling some of the test targets with -j2 option leads to pipeline failures + # (presumably out of memory error). Thus we make them separately in a single + # thread mode. Their corresponding modules are built before with the -j2 mode + # to make the process faster. + cmake --build . -- -j2 pcl_filters pcl_registration + cmake --build . -- test_filters test_registration test_registration_api + cmake --build . -- -j2 + displayName: 'Build Library' + - script: | + cd $BUILD_DIR/test + ctest -V -T Test + displayName: 'Run Unit Tests' + - task: PublishTestResults@2 + inputs: + testResultsFormat: 'CTest' + testResultsFiles: '**/Test*.xml' + searchFolder: '$(Agent.BuildDirectory)/build' + condition: succeededOrFailed()