forked from ahmedelkhyary/hyperpay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
50 lines (37 loc) · 1.16 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
# azure-pipeline.yml
trigger:
branches:
include:
- main # Update with your main branch name
pool:
vmImage: 'windows-latest'
steps:
- task: FlutterInstall@0
inputs:
mode: 'auto'
channel: 'stable'
version: 'latest'
- script: flutter clean
displayName: 'Flutter clean'
- script: flutter pub get
displayName: 'Flutter pub get'
- script: flutter build apk --release
displayName: 'Flutter build APK release'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/build/app/outputs/flutter-apk/app-release.apk'
ArtifactName: 'apk'
# - script: flutter analyze
# displayName: 'Flutter analyze'
# - script: flutter test --coverage
# displayName: 'Flutter tests with coverage'
# - task: PublishCodeCoverageResults@1
# inputs:
# codeCoverageTool: 'Cobertura'
# summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/lcov.info'
# failIfCoverageEmpty: false
# - task: PublishBuildArtifacts@1
# inputs:
# PathtoPublish: '$(System.DefaultWorkingDirectory)/build/ios/iphoneos'
# ArtifactName: 'ios'
# Add additional steps for Android builds, distribution, etc. as needed