machine:
  xcode:
    version: "7.0"

dependencies:
  pre:
    - scripts/import_certs
    - sudo chown :wheel /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ *.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
    - brew update
    - brew install carthage
  override:
    - carthage bootstrap
  post:
    - scripts/delete_keychain
  cache_directories:
    - "Carthage"

test:
  override:
    - set -o pipefail &&
      xcodebuild
        CODE_SIGNING_REQUIRED=NO
        CODE_SIGN_IDENTITY=
        PROVISIONING_PROFILE=
        -sdk iphonesimulator
        -destination 'platform=iOS Simulator,OS=8.3,name=iPhone 6'
        -project Dobby.xcodeproj
        -scheme "Dobby-iOS"
        -configuration Debug
        clean test |
      tee $CIRCLE_ARTIFACTS/xcode_raw_ios.log |
      xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/ios-results.xml
    - set -o pipefail &&
      xcodebuild
        CODE_SIGNING_REQUIRED=NO
        CODE_SIGN_IDENTITY=
        PROVISIONING_PROFILE=
        -sdk macosx
        -project Dobby.xcodeproj
        -scheme "Dobby-Mac"
        -configuration Debug
        clean test |
      tee $CIRCLE_ARTIFACTS/xcode_raw_osx.log |
      xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/osx-results.xml

machine:
  xcode:
    version: "7.0"

dependencies:
  pre:
    - scripts/import_certs
    - sudo chown :wheel /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ *.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
    - brew update
    - brew install carthage
  override:
    - carthage bootstrap
  post:
    - scripts/delete_keychain
  cache_directories:
    - "Carthage"

test:
  override:
    - set -o pipefail &&
      xcodebuild
        CODE_SIGNING_REQUIRED=NO
        CODE_SIGN_IDENTITY=
        PROVISIONING_PROFILE=
        -sdk iphonesimulator
        -destination 'platform=iOS Simulator,OS=9.0,name=iPhone 6s'
        -project Dobby.xcodeproj
        -scheme "Dobby-iOS"
        -configuration Debug
        clean test |
      tee $CIRCLE_ARTIFACTS/xcode_raw_ios.log |
      xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/ios-results.xml
    - set -o pipefail &&
      xcodebuild
        CODE_SIGNING_REQUIRED=NO
        CODE_SIGN_IDENTITY=
        PROVISIONING_PROFILE=
        -sdk macosx
        -project Dobby.xcodeproj
        -scheme "Dobby-Mac"
        -configuration Debug
        clean test |
      tee $CIRCLE_ARTIFACTS/xcode_raw_osx.log |
      xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/osx-results.xml

Update CircleCI simulator to iPhone 6s (iOS 9.0)
Update CircleCI simulator to iPhone 6s (iOS 9.0)
