# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

language: objective-c
osx_image: xcode9.2

before_install:
  - gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
  - pod repo update --silent
  - pod --version

env:
  - DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=11.2"
  - DESTINATION="platform=iOS Simulator,name=iPhone 6,OS=10.3"
  - DESTINATION="platform=iOS Simulator,name=iPad Air,OS=11.2"
  - DESTINATION="platform=iOS Simulator,name=iPad Air,OS=10.3"

script:
  - set -o pipefail && xcodebuild test -destination "$DESTINATION" -workspace Example/Alamofire-Decodable.xcworkspace -scheme Alamofire-Decodable-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
  - pod lib lint

# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

language: objective-c
osx_image: xcode9.2

before_install:
  - gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
  - pod repo update --silent
  - pod --version

env:
  - DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=11.2"
  - DESTINATION="platform=iOS Simulator,name=iPhone 7,OS=10.3.1"
  - DESTINATION="platform=iOS Simulator,name=iPad Air 2,OS=11.2"
  - DESTINATION="platform=iOS Simulator,name=iPad Air 2,OS=10.3.1"

script:
  - set -o pipefail && xcodebuild test -destination "$DESTINATION" -workspace Example/Alamofire-Decodable.xcworkspace -scheme Alamofire-Decodable-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
  - pod lib lint

Use correct version of iOS 10
Use correct version of iOS 10
