-
Notifications
You must be signed in to change notification settings - Fork 199
/
azure-pipelines-package.yml
56 lines (54 loc) · 1.84 KB
/
azure-pipelines-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
trigger:
tags:
include:
- '*'
exclude:
- latest
branches:
exclude:
- '*'
pr: none
# Scheduled builds on master to build the "latest" are configure through the AZP GUI.
jobs:
- job: Configure
displayName: Configure Variables
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: none
- bash: |
echo "##vso[task.setvariable variable=BuildHash;isOutput=true]${CONFIGURE_BUILDHASH:-release}"
name: configure
- template: templates/package-linux-job.yml
parameters:
DOCKERFILE: Dockerfile-2010-x86_64
- template: templates/package-mac-job.yml
- template: templates/package-win-job.yml
parameters:
PYTHON_ARCH: x64
CMAKE_PLATFORM: x64
VCVAR_OPTIONS: amd64
- job: Doxygen
dependsOn: Configure
condition: ne( variables['configure.doxygen'], 'true' )
timeoutInMinutes: 60
variables:
SIMPLEITK_GIT_TAG: $[ dependencies.Configure.outputs['configure.BuildHash'] ]
steps:
- template: templates/git-download-steps.yml
- bash: |
cd ${BUILD_SOURCESDIRECTORY}/Utilities/Doxygen/docker
docker build -f Dockerfile -t simpleitk-doxygen .
displayName: Build Docker Image
- bash: |
docker run \
--mount type=bind,source=${BUILD_SOURCESDIRECTORY},destination=/work/SimpleITK,readonly \
--env SIMPLEITK_GIT_TAG \
--name sitk-dox simpleitk-doxygen
mkdir -p $(Build.ArtifactStagingDirectory)/Doxygen
docker cp sitk-dox:/SimpleITKDoxygen.tar.gz $(Build.ArtifactStagingDirectory)/Doxygen/SimpleITKDoxygen-${SIMPLEITK_GIT_TAG}.tar.gz
displayName: Docker doxygen generation
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/Doxygen
artifactName: Doxygen