Skip to content

Commit

Permalink
ci: Publish dependencies documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Mar 14, 2021
1 parent 124c6eb commit 07a0fd2
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is part of OpenOrienteering.

# Copyright 2019-2020 Kai Pastor
# Copyright 2019-2021 Kai Pastor
#
# Redistribution and use is allowed according to the terms of the BSD license:
#
Expand Down Expand Up @@ -65,6 +65,7 @@ jobs:
variables:
IMAGE_NAME: 'ubuntu-18.04'
SUPERBUILD_INSTALL_DIR: $(HOME)/superbuild
WITH_GRAPHVIZ: true
pool:
vmImage: '$(IMAGE_NAME)'
steps:
Expand Down
13 changes: 12 additions & 1 deletion ci/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is part of OpenOrienteering.

# Copyright 2019-2020 Kai Pastor
# Copyright 2019-2021 Kai Pastor
#
# Redistribution and use is allowed according to the terms of the BSD license:
#
Expand Down Expand Up @@ -84,3 +84,14 @@ steps:
-- ${{ parameters.buildArgs }}
timeoutInMinutes: 210
displayName: 'Build'

- task: CMake@1
inputs:
workingDirectory: 'build'
cmakeArgs: >
$(CMAKE_WRAPPING)
--build .
--target superbuild-graphviz-pdf
timeoutInMinutes: 5
condition: and(succeeded(), in(variables['WITH_GRAPHVIZ'], '1', 'on', 'true', 'yes'))
displayName: 'Generate dependencies documentation'
18 changes: 17 additions & 1 deletion ci/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is part of OpenOrienteering.

# Copyright 2019 Kai Pastor
# Copyright 2019-2021 Kai Pastor
#
# Redistribution and use is allowed according to the terms of the BSD license:
#
Expand Down Expand Up @@ -76,3 +76,19 @@ steps:
condition: and(succeeded(), in(variables['CREATE_ARTIFACTS'], '1', 'on', 'true', 'yes'))
displayName: 'Publish binary artifacts'

- bash: |
set -e
set -x
test -d build/Superbuild.pdf || exit 1
rm -Rf "${HOME}/dependencies"
mkdir "${HOME}/dependencies"
cp build/Superbuild.pdf "${HOME}/dependencies/"
condition: and(succeeded(), in(variables['WITH_GRAPHVIZ'], '1', 'on', 'true', 'yes'))
displayName: 'Prepare dependencies documentation publishing'

- task: PublishPipelineArtifact@0
inputs:
artifactName: 'superbuild-dependencies'
targetPath: $(HOME)/dependencies
condition: and(succeeded(), in(variables['WITH_GRAPHVIZ'], '1', 'on', 'true', 'yes'))
displayName: 'Publish dependencies documentation'

0 comments on commit 07a0fd2

Please sign in to comment.