Skip to content

Commit

Permalink
Add ios simulator build
Browse files Browse the repository at this point in the history
  • Loading branch information
paullinator committed Jul 6, 2023
1 parent 799c235 commit 0ac1092
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ def buildProduction(String stageName) {
}
}

def buildSim(String stageName) {
stage("Build Sim ${stageName}") {
if (env.BRANCH_NAME in ['develop', 'staging', 'master', 'beta', 'testMaestro']) {
if (stageName == 'ios' && params.IOS_BUILD_SIM) {
sh 'npm run prepare.ios'
sh "node -r sucrase/register ./scripts/deploy.ts edge ios ${BRANCH_NAME} sim"
}
}
}
}

pipeline {
agent none
tools {
Expand All @@ -57,6 +68,7 @@ pipeline {
parameters {
booleanParam(name: 'ANDROID_BUILD', defaultValue: true, description: 'Build an Android version')
booleanParam(name: 'IOS_BUILD', defaultValue: true, description: 'Build an iOS version')
booleanParam(name: 'IOS_BUILD_SIM', defaultValue: true, description: 'Build an iOS simulator version')
booleanParam(name: 'VERBOSE', defaultValue: false, description: 'Complete build log output')
}
environment {
Expand All @@ -76,6 +88,15 @@ pipeline {
}
}
}
stage('IOS Simulator Build') {
agent { label 'ios-build-sim' }
steps {
script {
preBuildStages('IOS Simulator')
buildSim('ios')
}
}
}
stage('Android Build') {
agent { label 'android-build' }
steps {
Expand Down

0 comments on commit 0ac1092

Please sign in to comment.