diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-26 16:59:32 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-26 17:03:06 +0000 |
commit | ace20c6a88e4a7b3347cdbc96d6d5d99b197bebf (patch) | |
tree | e546350b7df7ae2478fd12941fa7db1da97d9b3d | |
parent | 826d9a4de88b4b31b21b7fd7fde934b318b24341 (diff) | |
download | libgit2-ace20c6a88e4a7b3347cdbc96d6d5d99b197bebf.tar.gz |
ci: run docurium to create documentationethomson/ci_docurium
Run docurium as part of the build. The goal of this is to be able to
evaluate the documentation in a given pull request; as such, this does
not implement any sort of deployment pipeline.
This will allow us to download a snapshot of the documentation from the
CI build and evaluate the docs for a particular pull request; before
it's been merged.
-rw-r--r-- | azure-pipelines.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 85eb1bce0..e4931cc4b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -121,3 +121,26 @@ jobs: environmentVariables: CMAKE_OPTIONS: -G"MinGW Makefiles" PATH: $(Agent.TempDirectory)\mingw32\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin + +- job: documentation + displayName: 'Generate Documentation' + pool: + vmImage: 'Ubuntu 16.04' + steps: + - script: | + git config user.name 'Documentation Generation' + git config user.email 'noreply@libgit2.org' + docker run --rm -v /home/vsts/work/1/s:/src -w /src libgit2/docurium:test cm doc api.docurium + git checkout gh-pages + cp -R * '$(Build.BinariesDirectory)' + - task: archivefiles@2 + displayName: 'Archive Documentation' + inputs: + rootFolderOrFile: '$(Build.BinariesDirectory)' + includeRootFolder: false + archiveFile: '$(Build.ArtifactStagingDirectory)/api-documentation.zip' + - task: publishbuildartifacts@1 + displayName: 'Upload Documentation' + inputs: + pathToPublish: '$(Build.ArtifactStagingDirectory)' + artifactName: 'docs' |