-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
40 lines (36 loc) · 930 Bytes
/
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
strategy:
matrix:
linux:
imageName: 'ubuntu-20.04'
buildType: 'appbundle'
buildOutDir: 'bundle'
# mac:
#imageName: 'macos-10.13'
#buildType: 'ios'
#buildOutDir: 'ios'
trigger:
- master
- rel/*
pr:
- master
- rel/*
pool:
vmImage: $(imageName)
steps:
- script: git submodule update --init --recursive
displayName: 'Update submodules'
- task: DownloadSecureFile@1
inputs:
secureFile: "google-services.json"
- script: mv $(Agent.TempDirectory)/google-services.json ./android/app/
displayName: 'Move Firebase keys into place'
- script: ./flutterw doctor
displayName: 'Set up Flutter'
- script: ./flutterw test
displayName: 'Flutter Test'
- script: ./flutterw build $(buildType) && ./flutterw build apk
displayName: 'Release build'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'outputs'
targetPath: 'build/app/outputs/$(buildOutDir)/release'