Skip to content

Instantly share code, notes, and snippets.

@Kalvin126
Last active June 8, 2018 18:28
Show Gist options
  • Save Kalvin126/141d2ccd4e302015160d26290c8c933b to your computer and use it in GitHub Desktop.
Save Kalvin126/141d2ccd4e302015160d26290c8c933b to your computer and use it in GitHub Desktop.
Parallelized Distributed Testing Multiple Destinations
pipeline {
agent none
stages {
stage('Build') {
sh '''
xcodebuild -scheme TestParallel build-for-testing \
-destination 'platform=iOS Simulator,name=iPhone 8,OS=12.0' \
-destination 'platform=iOS Simulator,name=iPhone X,OS=12.0
'''
}
stage('Tests') {
parallel {
stage('Simulator 1') {
sh '''
xcodebuild -scheme TestParallel test-without-building \
-destination 'platform=iOS Simulator,name=iPhone X,OS=12.0
'''
}
stage('Simulator 2') {
sh '''
xcodebuild -scheme TestParallel test-without-building \
-destination 'platform=iOS Simulator,name=iPhone 8,OS=12.0
'''
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment