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

language: objective-c
osx_image: xcode8

before_install:
  - gem install cocoapods --version 1.1.0.rc2

env:
  - DESTINATION='platform=iOS Simulator,name=iPhone 6,OS=9.1' UI=true
  - DESTINATION='platform=iOS Simulator,name=iPhone 6,OS=10.0' UI=true
  - DESTINATION='platform=iOS Simulator,name=iPad Air,OS=9.1' UI=true
  - DESTINATION='platform=iOS Simulator,name=iPad Air,OS=10.0' UI=true

script:
- set -o pipefail
- travis/validate_carthage.sh
- xcodebuild -destination "$DESTINATION" -workspace Example/XCTest-Gherkin.xcworkspace -scheme XCTest-Gherkin-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO test | xcpretty
- if [ $UI ]; then xcodebuild -destination "$DESTINATION" -workspace Example/XCTest-Gherkin.xcworkspace -scheme XCTest-Gherkin-Example-UI -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO test | xcpretty; fi
- pod lib lint

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

language: objective-c
osx_image: xcode8

before_install:
  - gem install cocoapods --version 1.1.0.rc2

env:
  - DESTINATION='platform=iOS Simulator,name=iPhone 6,OS=9.1' UI=true
  - DESTINATION='platform=iOS Simulator,name=iPhone 6,OS=10.3' UI=true
  - DESTINATION='platform=iOS Simulator,name=iPad Air,OS=9.1' UI=true
  - DESTINATION='platform=iOS Simulator,name=iPad Air,OS=10.3' UI=true

script:
- set -o pipefail
- travis/validate_carthage.sh
- xcodebuild -destination "$DESTINATION" -workspace Example/XCTest-Gherkin.xcworkspace -scheme XCTest-Gherkin-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO test | xcpretty
- if [ $UI ]; then xcodebuild -destination "$DESTINATION" -workspace Example/XCTest-Gherkin.xcworkspace -scheme XCTest-Gherkin-Example-UI -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO test | xcpretty; fi
- pod lib lint

Update to iOS 10.3 simulator
Update to iOS 10.3 simulator
