Skip to content

Commit

Permalink
[temp] Put tutorials pipeline into build-macos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
taketwo committed Dec 9, 2018
1 parent 9a254e2 commit dcbb7f8
Showing 1 changed file with 18 additions and 48 deletions.
66 changes: 18 additions & 48 deletions .ci/azure-pipelines/build-macos.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,25 @@
resources:
containers:
- container: env1604
image: pointcloudlibrary/env:16.04

jobs:
- job: osx
displayName: macOS High Sierra
- job: tutorials
displayName: Tutorials
timeoutInMinutes: 0
pool:
vmImage: 'macOS-10.13'
vmImage: 'Ubuntu 16.04'
container: env1604
variables:
BUILD_DIR: '$(Agent.WorkFolder)/build'
GOOGLE_TEST_DIR: '$(Agent.WorkFolder)/googletest'
BUILD_DIR: '$(Agent.BuildDirectory)/build'
INSTALL_DIR: '$(Agent.BuildDirectory)/install'
CMAKE_CXX_FLAGS: '-Wall -Wextra -Wabi -O2'
steps:
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'Installed PCL'
pipelineId: '$(Build.TriggeredBy.BuildId)'
targetPath: $(INSTALL_DIR)
- script: |
brew install pkg-config qt5 libpcap brewsci/science/openni
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
cmake $(Build.SourcesDirectory) \
-DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS" \
-DGTEST_SRC_DIR="$GOOGLE_TEST_DIR/googletest" \
-DGTEST_INCLUDE_DIR="$GOOGLE_TEST_DIR/googletest/include" \
-DQt5Core_DIR=/usr/local/opt/qt5/lib/cmake/Qt5Core \
-DQt5Gui_DIR=/usr/local/opt/qt5/lib/cmake/Qt5Gui \
-DQt5Widgets_DIR=/usr/local/opt/qt5/lib/cmake/Qt5Widgets \
-DQt5Concurrent_DIR=/usr/local/opt/qt5/lib/cmake/Qt5Concurrent \
-DQt5OpenGL_DIR=/usr/local/opt/qt5/lib/cmake/Qt5OpenGL \
-DPCL_ONLY_CORE_POINT_TYPES=ON \
-DPCL_QT_VERSION=5 \
-DBUILD_simulation=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 && cmake --build . -- tests
displayName: 'Run Unit Tests'

$(Build.SourcesDirectory)/.ci/scripts/build_tutorials.sh -k -s $INSTALL_DIR/share/pcl-1.9 $(Build.SourcesDirectory) $BUILD_DIR/tutorials
displayName: 'Build Tutorials'

0 comments on commit dcbb7f8

Please sign in to comment.