Skip to content

Commit 07a0fd2

Browse files
committed
ci: Publish dependencies documentation
1 parent 124c6eb commit 07a0fd2

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

ci/azure-pipelines.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is part of OpenOrienteering.
22

3-
# Copyright 2019-2020 Kai Pastor
3+
# Copyright 2019-2021 Kai Pastor
44
#
55
# Redistribution and use is allowed according to the terms of the BSD license:
66
#
@@ -65,6 +65,7 @@ jobs:
6565
variables:
6666
IMAGE_NAME: 'ubuntu-18.04'
6767
SUPERBUILD_INSTALL_DIR: $(HOME)/superbuild
68+
WITH_GRAPHVIZ: true
6869
pool:
6970
vmImage: '$(IMAGE_NAME)'
7071
steps:

ci/build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is part of OpenOrienteering.
22

3-
# Copyright 2019-2020 Kai Pastor
3+
# Copyright 2019-2021 Kai Pastor
44
#
55
# Redistribution and use is allowed according to the terms of the BSD license:
66
#
@@ -84,3 +84,14 @@ steps:
8484
-- ${{ parameters.buildArgs }}
8585
timeoutInMinutes: 210
8686
displayName: 'Build'
87+
88+
- task: CMake@1
89+
inputs:
90+
workingDirectory: 'build'
91+
cmakeArgs: >
92+
$(CMAKE_WRAPPING)
93+
--build .
94+
--target superbuild-graphviz-pdf
95+
timeoutInMinutes: 5
96+
condition: and(succeeded(), in(variables['WITH_GRAPHVIZ'], '1', 'on', 'true', 'yes'))
97+
displayName: 'Generate dependencies documentation'

ci/publish.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is part of OpenOrienteering.
22

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

79+
- bash: |
80+
set -e
81+
set -x
82+
test -d build/Superbuild.pdf || exit 1
83+
rm -Rf "${HOME}/dependencies"
84+
mkdir "${HOME}/dependencies"
85+
cp build/Superbuild.pdf "${HOME}/dependencies/"
86+
condition: and(succeeded(), in(variables['WITH_GRAPHVIZ'], '1', 'on', 'true', 'yes'))
87+
displayName: 'Prepare dependencies documentation publishing'
88+
89+
- task: PublishPipelineArtifact@0
90+
inputs:
91+
artifactName: 'superbuild-dependencies'
92+
targetPath: $(HOME)/dependencies
93+
condition: and(succeeded(), in(variables['WITH_GRAPHVIZ'], '1', 'on', 'true', 'yes'))
94+
displayName: 'Publish dependencies documentation'

0 commit comments

Comments
 (0)