language: objective-c
osx_image: xcode7.2
cache: cocoapods
podfile: Example/Podfile
notifications:
  email: false
env:
  global:
  - LC_CTYPE=en_US.UTF-8
  - LANG=en_US.UTF-8
  - WORKSPACE=Example/IRLSizeExample.xcworkspace
  - IOS_SDK=iphonesimulator9.2
  - EXAMPLE_SCHEME="IRLSizeExample"
  matrix:
    - DESTINATION="OS=8.1,name=iPhone 4S"
    - DESTINATION="OS=8.2,name=iPhone 5"
    - 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=iPad Air 2"
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=Example
install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
  - set -o pipefail
  - xcodebuild -version
  - xcodebuild -showsdks
  - xcrun simctl list

  - xcodebuild -workspace "$WORKSPACE" -scheme "$EXAMPLE_SCHEME" -destination "$DESTINATION" -configuration Debug test | xcpretty -c;

  - pod lib lint;

language: objective-c
osx_image: xcode7.2
cache: cocoapods
podfile: Example/Podfile
notifications:
  email: false
env:
  global:
  - LC_CTYPE=en_US.UTF-8
  - LANG=en_US.UTF-8
  - WORKSPACE=Example/IRLSizeExample.xcworkspace
  - IOS_SDK=iphonesimulator9.2
  - EXAMPLE_SCHEME="IRLSizeExample"
  matrix:
    - DESTINATION="OS=8.1,name=iPhone 4S"
    - DESTINATION="OS=9.2,name=iPhone 6S Plus"
    - DESTINATION="OS=8.1,name=iPad 2"
    - DESTINATION="OS=9.2,name=iPad Pro"
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=Example
install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
  - set -o pipefail
  - xcodebuild -version
  - xcodebuild -showsdks
  - xcrun simctl list

  - xcodebuild -workspace "$WORKSPACE" -scheme "$EXAMPLE_SCHEME" -destination "$DESTINATION" -configuration Debug test | xcpretty -c;

  - pod lib lint;

Test on earliest and latest supported.
Test on earliest and latest supported.
