-
Notifications
You must be signed in to change notification settings - Fork 10
/
azure-pipelines.yml
50 lines (43 loc) · 1.09 KB
/
azure-pipelines.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
trigger:
branches:
include:
- master
paths:
exclude:
- README.md
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python36:
python.version: '3.6'
architecture: 'x64'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use python $(python.version)'
- script: |
pip install --upgrade sphinx
displayName: 'Install sphinx'
- script: |
pip install --upgrade sphinx_rtd_theme
displayName: 'Install sphinx_rtd_theme'
- task: CmdLine@2
inputs:
script: 'make html'
workingDirectory: '$(build.sourcesdirectory)'
displayName: 'Compile documentation'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(build.sourcesDirectory)/_build/html'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
displayName: 'Publish documentation as artifact'