-
Notifications
You must be signed in to change notification settings - Fork 273
/
azure-pipelines.yml
89 lines (83 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
branches:
include:
- develop
paths:
include:
- src/mobile/*
- azure-pipelines.yml
pr: none
jobs:
- job: Android
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '**/Restaurant.Client.sln'
# - task: CacheBeta@0
# inputs:
# key: |
# $(Agent.OS)
# $(Build.SourcesDirectory)
# path: $(NUGET_PACKAGES)
# displayName: Cache NuGet packages
- task: XamarinAndroid@1
inputs:
projectFile: '**/Restaurant.Droid.csproj'
outputDirectory: '$(outputDirectory)'
configuration: '$(buildConfiguration)'
msbuildVersionOption: 'latest'
msbuildArchitectureOption: 'x64'
jdkOption: 'JDKVersion'
msbuildArguments: /p:JavaSdkDirectory="$(JAVA_HOME)/"
- job: iOS
pool:
vmImage: 'macOS-10.14'
variables:
buildConfiguration: 'Release'
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
steps:
- bash: |
SYMLINK=6_0_0
MONOPREFIX=/Library/Frameworks/Mono.framework/Versions/$SYMLINK
echo "##vso[task.setvariable variable=DYLD_FALLBACK_LIBRARY_PATH;]$MONOPREFIX/lib:/lib:/usr/lib:$DYLD_LIBRARY_FALLBACK_PATH"
echo "##vso[task.setvariable variable=PKG_CONFIG_PATH;]$MONOPREFIX/lib/pkgconfig:$MONOPREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
echo "##vso[task.setvariable variable=PATH;]$MONOPREFIX/bin:$PATH"
sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_0_0
displayName: Selecting Xamarin.iOS
- task: DotNetCoreInstaller@0
inputs:
version: '2.2.301'
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '2.2.301'
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '**/Restaurant.Client.sln'
# - task: CacheBeta@0
# inputs:
# key: |
# $(Agent.OS)
# $(Build.SourcesDirectory)
# path: $(NUGET_PACKAGES)
# displayName: Cache NuGet packages
- task: XamariniOS@2
inputs:
solutionFile: '**/Restaurant.iOS.csproj'
configuration: 'Release'
buildForSimulator: true
packageApp: false