-
-
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 #2 from PointCloudLibrary/master
update
- Loading branch information
Showing
12 changed files
with
551 additions
and
132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
jobs: | ||
- job: documentation | ||
displayName: Generate Documentation | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
variables: | ||
BUILD_DIR: '$(Agent.BuildDirectory)/build' | ||
DOC_DIR: '$(Agent.BuildDirectory)/documentation' | ||
steps: | ||
- task: InstallSSHKey@0 | ||
inputs: | ||
hostName: github.com | ||
sshPublicKey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBh5Yrau/gguTfoNALxhVX77Pgz6y6UWoJRERMKR68ee documentation@pointclouds.org | ||
sshKeySecureFile: id_ed25519 | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.6' | ||
addToPath: true | ||
- script: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
libeigen3-dev libboost-filesystem-dev libboost-iostreams-dev \ | ||
libboost-thread-dev libboost-chrono-dev doxygen-latex dvipng \ | ||
libqhull-dev libflann-dev | ||
pip install Jinja2==2.8.1 sphinx sphinxcontrib-doxylink | ||
displayName: 'Install Dependencies' | ||
- script: | | ||
mkdir $BUILD_DIR && cd $BUILD_DIR | ||
cmake $(Build.SourcesDirectory) \ | ||
-DDOXYGEN_USE_SHORT_NAMES=OFF \ | ||
-DSPHINX_HTML_FILE_SUFFIX=php \ | ||
-DWITH_DOCS=ON \ | ||
-DWITH_TUTORIALS=ON | ||
displayName: 'CMake Configuration' | ||
- script: cd $BUILD_DIR && make doc tutorials advanced | ||
displayName: 'Build Documentation' | ||
- script: | | ||
git config --global user.email "documentation@pointclouds.org" | ||
git config --global user.name "PointCloudLibrary (via Azure Pipelines)" | ||
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
git clone git@github.com:PointCloudLibrary/documentation.git $DOC_DIR | ||
cd $DOC_DIR | ||
cp -r $BUILD_DIR/doc/tutorials/html/* tutorials | ||
cp -r $BUILD_DIR/doc/advanced/html/* advanced | ||
cp -r $BUILD_DIR/doc/doxygen/html/* . | ||
git add --all | ||
git commit --amend --reset-author -m 'Documentation for commit $(Build.SourceVersion)' -q | ||
git push --force | ||
displayName: 'Push Generated Documentation To GitHub' | ||
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') |
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 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
Oops, something went wrong.