This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathazure-pipelines.yml
109 lines (96 loc) · 3.55 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
109
# Deze broncode is openbaar gemaakt vanwege een Woo-verzoek zodat deze
# gericht is op transparantie en niet op hergebruik. Hergebruik van
# de broncode is toegestaan onder de EUPL licentie, met uitzondering
# van broncode waarvoor een andere licentie is aangegeven.
#
# Het archief waar dit bestand deel van uitmaakt is te vinden op:
# https://github.com/MinBZK/woo-besluit-broncode-digid-app
#
# Eventuele kwetsbaarheden kunnen worden gemeld bij het NCSC via:
# https://www.ncsc.nl/contact/kwetsbaarheid-melden
# onder vermelding van "Logius, openbaar gemaakte broncode DigiD-App"
#
# Voor overige vragen over dit Woo-besluit kunt u mailen met [email protected]
#
# This code has been disclosed in response to a request under the Dutch
# Open Government Act ("Wet open Overheid"). This implies that publication
# is primarily driven by the need for transparence, not re-use.
# Re-use is permitted under the EUPL-license, with the exception
# of source files that contain a different license.
#
# The archive that this file originates from can be found at:
# https://github.com/MinBZK/woo-besluit-broncode-digid-app
#
# Security vulnerabilities may be responsibly disclosed via the Dutch NCSC:
# https://www.ncsc.nl/contact/kwetsbaarheid-melden
# using the reference "Logius, publicly disclosed source code DigiD-App"
#
# Other questions regarding this Open Goverment Act decision may be
# directed via email to [email protected]
#
# Xamarin.iOS
# Build a Xamarin.iOS project.
# Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xamarin
trigger:
- master
pool:
vmImage: 'macos-11'
steps:
- checkout: self
clean: true
submodules: true
# To manually select a Xamarin SDK version on the Microsoft-hosted macOS agent,
# configure this task with the *Mono* version that is associated with the
# Xamarin SDK version that you need, and set the "enabled" property to true.
# See https://go.microsoft.com/fwlink/?linkid=871629
- script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_12_16
displayName: 'Select the Xamarin SDK version'
enabled: true
- task: NuGetToolInstaller@1
displayName: 'Installeer NuGet (latest)'
- task: NuGetCommand@2
displayName: 'Restore NuGet packages'
inputs:
command: 'restore'
restoreSolution: '**/DigiD.Mobile.sln'
feedsToUse: 'select'
vstsFeed: 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'
- task: SonarCloudPrepare@1
displayName: 'Initialiseer SonarCloud'
inputs:
SonarCloud: 'SonarCloud BDMCC'
organization: 'bdmcc'
scannerMode: 'MSBuild'
projectKey: 'DIG'
projectName: 'DIG - MobileApp - Logius'
- task: InstallAppleCertificate@2
inputs:
certSecureFile: 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'
certPwd: $(CertPass)
keychain: 'temp'
- task: InstallAppleProvisioningProfile@1
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: 'MCC_DEV_DigiD.mobileprovision'
- task: XamariniOS@2
displayName: 'Build Xamarin iOS'
inputs:
solutionFile: '**/DigiD.Mobile.iOS.sln'
configuration: 'Develop'
buildForSimulator: true
packageApp: true
- task: XamarinAndroid@1
displayName: 'Build Xamarin Android'
inputs:
projectFile: '**/DigiD.Droid.csproj'
configuration: 'Develop'
createAppPackage: true
jdkOption: 'JDKVersion'
msbuildVersionOption: latest
msbuildArchitectureOption: x86
- task: SonarCloudAnalyze@1
- task: SonarCloudPublish@1
displayName: 'Publiceer data naar SonarCloud.'
inputs:
pollingTimeoutSec: '300'