forked from wpilibsuite/frc-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
98 lines (78 loc) · 2.88 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
pool:
vmImage: 'ubuntu-16.04'
trigger:
batch: true
branches:
include:
- master
jobs:
- job: Build
steps:
- task: UsePythonVersion@0
displayName: 'Select Python Version 3.6'
inputs:
versionSpec: '3.6'
architecture: 'x64'
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install and Upgrade Pip'
- script: pip install -r source/requirements.txt
displayName: 'Install Python Requirements'
- script: sudo apt-get update
displayName: 'Update System Packages'
- script: sudo apt-get install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra latexmk texlive-lang-greek texlive-luatex texlive-xetex texlive-fonts-extra dvipng
displayName: 'Install LateX'
- script: sudo apt-get install -qy --force-yes graphviz
displayName: 'Install GraphViz'
- script: make html
displayName: 'Compile HTML'
- task: ArchiveFiles@2
displayName: 'Archive HTML'
# Try to archive even if the build step failed
condition: in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues', 'Failed')
inputs:
rootFolderOrFile: build/html/
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/docs-html.zip'
replaceExistingArchive: true
- task: PublishBuildArtifacts@1
displayName: 'Publish HTML'
# Try to publish even if the build step failed
condition: in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues', 'Failed')
inputs:
artifactName: 'docs-html'
PathToPublish: '$(Build.ArtifactStagingDirectory)/docs-html.zip'
- script: make latexpdf
displayName: 'Compile PDF'
- task: PublishBuildArtifacts@1
displayName: 'Publish PDF'
inputs:
artifactName: 'docs-pdf'
PathToPublish: 'build/latex/firstroboticscompetition.pdf'
- job: LintCheck
steps:
- task: UsePythonVersion@0
displayName: 'Select Python Version 3.6'
inputs:
versionSpec: '3.6'
architecture: 'x64'
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install and Upgrade Pip'
- script: pip install -r source/requirements.txt
displayName: 'Install Python Requirements'
- script: make lint
displayName: 'Lint Check'
- job: LinkCheck
steps:
- task: UsePythonVersion@0
displayName: 'Select Python Version 3.6'
inputs:
versionSpec: '3.6'
architecture: 'x64'
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install and Upgrade Pip'
- script: pip install -r source/requirements.txt
displayName: 'Install Python Requirements'
- script: make linkcheck
displayName: 'Link Check'