This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines.yml
executable file
·108 lines (91 loc) · 2.52 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
99
100
101
102
103
104
105
106
107
108
# Azure Tester
trigger:
- master # Triggers when on master. Either pr or push
- maven-publish
variables:
isMaster: $[or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/maven-publish'))]
resources:
containers:
- container: wpilib2021
image: wpilib/roborio-cross-ubuntu:2021-18.04
- container: raspbian
image: wpilib/raspbian-cross-ubuntu:10-18.04
- container: bionic
image: wpilib/aarch64-cross-ubuntu:bionic-18.04
jobs:
- job: linux_master_publisher
pool:
vmImage: 'Ubuntu-latest'
container: bionic
steps:
# Init
- script: git submodule update --init
- script: git submodule update --remote -f
# Get toolchains
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx4096m'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: 'installRoborioToolchain'
options: '-PazureBuild'
# Build project
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx4096m'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: 'clean build'
options: '-PazureBuild'
# Publish project if on master branch
- task: Gradle@2
condition: and(succeeded(), eq(variables.isMaster, 'true'))
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx8196m'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: 'publish'
options: '-PazureBuild -PmasterPublish -PremotePublish -Ppublish_user=$(WML_Archiva_User) -Ppublish_pass=$(WML_Archiva_Token)'
# Sub Builders and publishers (platform dependent)
- job: roborio
pool:
vmImage: 'Ubuntu-latest'
container: 'wpilib2021'
steps:
- template: azure-init.yml
- template: azure-steps.yml
- job: r_pi
pool:
vmImage: 'Ubuntu-latest'
container: 'raspbian'
steps:
- template: azure-init.yml
- template: azure-steps.yml
- job: windows
pool:
vmImage: 'windows-latest'
steps:
- template: azure-init.yml
- task: JavaToolInstaller@0
inputs:
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- template: azure-steps.yml
- job: mac
pool:
vmImage: 'macOS-latest'
steps:
- template: azure-init.yml
- task: JavaToolInstaller@0
inputs:
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- template: azure-steps.yml