machine:
  xcode:
    version: 8.0

dependencies:
  override:
    - script/bootstrap

test:
  override:
    - set -o pipefail &&
      xcodebuild
        -sdk macosx
        -workspace Dobby.xcworkspace
        -scheme Dobby-macOS
        clean build test |
      tee $CIRCLE_ARTIFACTS/xcode_raw_macos.log |
      xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results-macos.xml
    - set -o pipefail &&
      xcodebuild
        CODE_SIGNING_REQUIRED=NO
        CODE_SIGN_IDENTITY=
        PROVISIONING_PROFILE=
        -sdk iphonesimulator
        -destination 'platform=iOS Simulator,OS=9.3,name=iPhone 6s'
        -workspace Dobby.xcworkspace
        -scheme Dobby-iOS
        clean build test |
      tee $CIRCLE_ARTIFACTS/xcode_raw_ios.log |
      xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results-ios.xml

machine:
  xcode:
    version: 8.0

dependencies:
  override:
    - script/bootstrap

test:
  override:
    - set -o pipefail &&
      xcodebuild
        -sdk macosx
        -workspace Dobby.xcworkspace
        -scheme Dobby-macOS
        clean build test |
      tee $CIRCLE_ARTIFACTS/xcode_raw_macos.log |
      xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results-macos.xml
    - set -o pipefail &&
      xcodebuild
        CODE_SIGNING_REQUIRED=NO
        CODE_SIGN_IDENTITY=
        PROVISIONING_PROFILE=
        -sdk iphonesimulator
        -destination 'platform=iOS Simulator,OS=10.0,name=iPhone 6s'
        -workspace Dobby.xcworkspace
        -scheme Dobby-iOS
        clean build test |
      tee $CIRCLE_ARTIFACTS/xcode_raw_ios.log |
      xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results-ios.xml

Update CircleCI iOS Simulator destination OS to 10.0
Update CircleCI iOS Simulator destination OS to 10.0
