language: objective-c
osx_image: xcode8.1
sudo: false

cache:
  directories:
  - Carthage
  - Inspector/node_modules

script: ./Scripts/build.sh

branches:
  only:
    - master

env:
- TARGET=WebDriverAgentLib SDK=iphonesimulator ACTION=test DESTINATION='iPad Air 2' IOS='10.1'
- TARGET=WebDriverAgentLib SDK=iphonesimulator ACTION=test DESTINATION='iPhone SE' IOS='10.1'
- TARGET=WebDriverAgentRunner SDK=iphonesimulator ACTION=build
- TARGET=WebDriverAgentRunner SDK=iphoneos ACTION=build

language: objective-c
osx_image: xcode8.3
sudo: false

cache:
  directories:
  - Carthage
  - Inspector/node_modules

script: ./Scripts/build.sh

branches:
  only:
    - master

env:
- TARGET=WebDriverAgentLib SDK=iphonesimulator ACTION=test DESTINATION='iPad Air 2' IOS='10.3'
- TARGET=WebDriverAgentLib SDK=iphonesimulator ACTION=test DESTINATION='iPhone SE' IOS='10.3'
- TARGET=WebDriverAgentRunner SDK=iphonesimulator ACTION=build
- TARGET=WebDriverAgentRunner SDK=iphoneos ACTION=build

Migrate Travis to new Xcode
Migrate Travis to new Xcode

Summary: Closes https://github.com/facebook/WebDriverAgent/pull/567

Reviewed By: antiarchit

Differential Revision: D5005850

Pulled By: marekcirkos

fbshipit-source-id: fb6228ab8b8301e8f755d6beb6f29ce6c606fe30
