branches:
  only:
    - master
    - v4
osx_image: xcode7.3
language: objective-c
env:
  matrix:
    - PLATFORM="OSX"    SDK="macosx10.11"
    - PLATFORM="iOS"    SDK="iphonesimulator9.3"    DESTINATION="OS=8.1,name=iPhone 6"
    - PLATFORM="iOS"    SDK="iphonesimulator9.3"    DESTINATION="OS=9.3,name=iPhone 6"
    - PLATFORM="tvOS"   SDK="appletvsimulator9.2"   DESTINATION="OS=9.2,name=Apple TV 1080p"
install:
  - pod install --repo-update
before_script:
  - gem install xcpretty -N
script:
  - set -o pipefail
  - travis_retry bash run_test.sh

branches:
  only:
    - master
    - v4
osx_image: xcode8
language: objective-c
env:
  matrix:
    - PLATFORM="OSX"    SDK="macosx10.12"
    - PLATFORM="iOS"    SDK="iphonesimulator10.0"    DESTINATION="OS=10.0,name=iPhone 6"
    - PLATFORM="tvOS"   SDK="appletvsimulator10.0"   DESTINATION="OS=10.0,name=Apple TV 1080p"
install:
  - pod install --repo-update
before_script:
  - gem install xcpretty -N
script:
  - set -o pipefail
  - travis_retry bash run_test.sh

Use Xcode 8 and new target platforms
[CI] Use Xcode 8 and new target platforms

Should work better… :/
