Skip to content

Instantly share code, notes, and snippets.

@Palleas
Created July 10, 2017 14:52
Show Gist options
  • Select an option

  • Save Palleas/15c8a19931ebb6e3bd70d9bcaa95118f to your computer and use it in GitHub Desktop.

Select an option

Save Palleas/15c8a19931ebb6e3bd70d9bcaa95118f to your computer and use it in GitHub Desktop.
# Fail as soon as one of the `xcodebuild` exits with a non-zero exit code
set -e
# iOS:
xcodebuild -workspace 'Demo.xcworkspace' -scheme 'Demo' -configuration 'Debug' -sdk iphonesimulator -destination name='iPhone 6s' build test | bundle exec xcpretty -c --test
# macOS:
xcodebuild -workspace 'Demo.xcworkspace' -scheme 'RxViewModelTests-macOS' -configuration 'Debug' -sdk macosx -destination arch='x86_64' test | bundle exec xcpretty -c --test
# tvOS:
xcodebuild -workspace 'Demo.xcworkspace' -scheme 'RxViewModelTests-tvOS' -configuration 'Debug' -sdk appletvsimulator10.2 -destination name='Apple TV 1080p' test | bundle exec xcpretty -c --test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment