-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4131 from shrijitsingh99/clang-ci
Add a job for clang in Ubuntu 18.04
- Loading branch information
Showing
8 changed files
with
238 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
steps: | ||
- checkout: self | ||
# find the commit hash on a quick non-forced update too | ||
fetchDepth: 10 | ||
- script: | | ||
brew install pkg-config qt5 libpcap brewsci/science/openni libomp | ||
brew install vtk --with-qt --without-python@2 | ||
brew install --only-dependencies pcl | ||
git clone https://github.com/abseil/googletest.git $GOOGLE_TEST_DIR # the official endpoint changed to abseil/googletest | ||
cd $GOOGLE_TEST_DIR && git checkout release-1.8.1 | ||
displayName: 'Install Dependencies' | ||
- script: | | ||
mkdir $BUILD_DIR && cd $BUILD_DIR | ||
# Surface switched off due to OpenGL deprecation on Mac | ||
cmake $(Build.SourcesDirectory) \ | ||
-DCMAKE_BUILD_TYPE="MinSizeRel" \ | ||
-DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX$(OSX_VERSION).sdk" \ | ||
-DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS" \ | ||
-DGTEST_SRC_DIR="$GOOGLE_TEST_DIR/googletest" \ | ||
-DGTEST_INCLUDE_DIR="$GOOGLE_TEST_DIR/googletest/include" \ | ||
-DQt5_DIR=/usr/local/opt/qt5/lib/cmake/Qt5 \ | ||
-DPCL_ONLY_CORE_POINT_TYPES=ON \ | ||
-DBUILD_simulation=ON \ | ||
-DBUILD_surface=OFF \ | ||
-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 | ||
cmake --build . -- -j2 | ||
displayName: 'Build Library' | ||
- script: cd $BUILD_DIR && cmake --build . -- tests | ||
displayName: 'Run Unit Tests' | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFormat: 'CTest' | ||
testResultsFiles: '**/Test*.xml' | ||
searchFolder: '$(Agent.WorkFolder)/build' | ||
condition: succeededOrFailed() | ||
|
Oops, something went wrong.