Azure YAML for Ionic Apps
For those who use Ionic Mobile App in Azure cloud, please find the YAML template. If you have any queries or trouble in setting up or for those who require Devops setup for their Ionic apps, feel free to contact me.
YAML file for Android build
Azure Pipeline YAML template for Android build using ionic framework
trigger:
- master
pool:
vmImage: 'macos-latest'
steps:
- task: UseNode@1
inputs:
checkLatest: true
- task: CmdLine@2
inputs:
script: |
echo "Installing ionic"
npm install -g @ionic/cli
cd PROJECT_PATH
npm install
ionic capacitor sync
- task: Gradle@2
inputs:
workingDirectory: 'PROJECT_PATH'
gradleWrapperFile: 'PROJECT_PATH/gradlew'
gradleOptions: '-Xmx3072m'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: 'assembleDebug'
YAML file for iOS build
Azure Pipeline YAML template for iOS build using ionic framework
trigger:
- master
pool:
vmImage: 'macos-latest'
steps:
- task: UseNode@1
inputs:
checkLatest: true
- task: CmdLine@2
inputs:
script: |
echo "Installing ionic"
npm install -g @ionic/cli
cd PROJECT_PATH
npm install
ionic capacitor sync
- task: CocoaPods@0
inputs:
workingDirectory: PROJECT_PATH
- task: Xcode@5
inputs:
actions: 'build'
scheme: 'AppName'
sdk: 'iphoneos'
configuration: 'Release'
xcWorkspacePath: 'PROJECT_PATH/AppName.xcworkspace'
xcodeVersion: 'default'