# Configuration for Travis (https://travis-ci.org)

language: objective-c

xcode_workspace: OneTimePassword.xcworkspace
xcode_scheme: OneTimePassword

osx_image: xcode7.2
xcode_sdk: iphonesimulator9.2

env:
  - DESTINATION="OS=8.1,name=iPhone 4S"
  - DESTINATION="OS=8.2,name=iPhone 5"
  - DESTINATION="OS=8.3,name=iPhone 5S"
  - DESTINATION="OS=8.4,name=iPhone 6"
  - DESTINATION="OS=9.0,name=iPhone 6 Plus"
  - DESTINATION="OS=9.1,name=iPhone 6S"
  - DESTINATION="OS=9.2,name=iPhone 6S Plus"

matrix:
  include:
    - osx_image: xcode8
      xcode_sdk: iphonesimulator10.0
      env: DESTINATION="OS=10.0,name=iPhone SE"

# Check out nested dependencies
before_install: git submodule update --init --recursive

# A custom test script is required because xctool cannot access the iOS keychain
# https://github.com/facebook/xctool/issues/269
script: set -o pipefail && xcodebuild -workspace $TRAVIS_XCODE_WORKSPACE -scheme $TRAVIS_XCODE_SCHEME -sdk $TRAVIS_XCODE_SDK -destination "$DESTINATION" build test | xcpretty -c

# Configuration for Travis (https://travis-ci.org)

language: objective-c

xcode_workspace: OneTimePassword.xcworkspace
xcode_scheme: OneTimePassword

osx_image: xcode7.2
xcode_sdk: iphonesimulator9.2

env:
  - DESTINATION="OS=8.1,name=iPhone 4S"
  - DESTINATION="OS=8.2,name=iPhone 5"
  - DESTINATION="OS=8.3,name=iPhone 5S"
  - DESTINATION="OS=8.4,name=iPhone 6"
  - DESTINATION="OS=9.0,name=iPhone 6 Plus"
  - DESTINATION="OS=9.1,name=iPhone 6S"
  - DESTINATION="OS=9.2,name=iPhone 6S Plus"
  - DESTINATION="OS=9.3,name=iPhone 6S Plus"

matrix:
  include:
    - osx_image: xcode8
      xcode_sdk: iphonesimulator10.0
      env: DESTINATION="OS=10.0,name=iPhone SE"

# Check out nested dependencies
before_install: git submodule update --init --recursive

# A custom test script is required because xctool cannot access the iOS keychain
# https://github.com/facebook/xctool/issues/269
script: set -o pipefail && xcodebuild -workspace $TRAVIS_XCODE_WORKSPACE -scheme $TRAVIS_XCODE_SCHEME -sdk $TRAVIS_XCODE_SDK -destination "$DESTINATION" build test | xcpretty -c

Test the build on iOS 9.3
[Travis] Test the build on iOS 9.3
