language: objective-c
osx_image: xcode9
env:
  global:
    - LC_CTYPE=en_US.UTF-8
    - LANG=en_US.UTF-8
    - PROJECT=OAuthSwift.xcodeproj
    - IOS_FRAMEWORK_SCHEME="OAuthSwift"
    - MACOS_FRAMEWORK_SCHEME="OAuthSwiftOSX"
    - IOS_SDK=iphonesimulator10.0
    - MACOS_SDK=macosx10.12
  matrix:
    - DESTINATION="OS=10.0,name=iPhone 8" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK"
    - DESTINATION="arch=x86_64" SCHEME="$MACOS_FRAMEWORK_SCHEME" SDK="$MACOS_SDK"
before_install:
  - gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
  - set -o pipefail
  - xcodebuild -version
  - xcodebuild -showsdks
  - xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;

branches:
  only:
    - master

language: objective-c
osx_image: xcode9
env:
  global:
    - LC_CTYPE=en_US.UTF-8
    - LANG=en_US.UTF-8
    - PROJECT=OAuthSwift.xcodeproj
    - IOS_FRAMEWORK_SCHEME="OAuthSwift"
    - MACOS_FRAMEWORK_SCHEME="OAuthSwiftOSX"
    - IOS_SDK=iphonesimulator11.0
    - MACOS_SDK=macosx10.12
  matrix:
    - DESTINATION="OS=11.0,name=iPhone 8" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK"
    - DESTINATION="arch=x86_64" SCHEME="$MACOS_FRAMEWORK_SCHEME" SDK="$MACOS_SDK"
before_install:
  - gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
  - set -o pipefail
  - xcodebuild -version
  - xcodebuild -showsdks
  - xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;

branches:
  only:
    - master

Switch CI to iOS 11
Switch CI to iOS 11
