Last active
June 8, 2018 18:28
-
-
Save Kalvin126/141d2ccd4e302015160d26290c8c933b to your computer and use it in GitHub Desktop.
Parallelized Distributed Testing Multiple Destinations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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