language: objective-c
osx_image: xcode8
sudo: false

cache:
  directories:
  - Carthage

script: ./Scripts/build.sh

branches:
  only:
    - master

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

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

cache:
  directories:
  - Carthage

script: ./Scripts/build.sh

branches:
  only:
    - master

env:
- TARGET=WebDriverAgentLib SDK=iphonesimulator ACTION=test DESTINATION='iPad Air 2' IOS='9.3'
- TARGET=WebDriverAgentLib SDK=iphonesimulator ACTION=test DESTINATION='iPhone 6' IOS='9.3'
- TARGET=WebDriverAgentRunner SDK=iphonesimulator ACTION=build
- TARGET=WebDriverAgentRunner SDK=iphoneos ACTION=build
- TARGET=WebDriverAgentUSBClient SDK=macosx ACTION=build

Switch back to Xcode 7.3.1
Switch back to Xcode 7.3.1

Summary:
Xcode 8 is super unstable in terms of running XCUITests. It is almost impossible to get green test run, as at least one test will fail due to test app launch.
Xcode 8 betas are much better however Travis does not support them. I hope that Apple would release new Xcode soon but, here we are.
Instead i decided to switch back to Xcode 7, which is much better.

Closes https://github.com/facebook/WebDriverAgent/pull/328

Reviewed By: lawrencelomax

Differential Revision: D4050759

Pulled By: marekcirkos

fbshipit-source-id: b62c16c8e080c7ed74b3eb30a7f06b0d6b808feb
