osx_image: xcode7.3
language: objective-c

before_install:
- brew update
- if brew outdated | grep -qx carthage; then brew upgrade carthage; fi
- travis_wait 35 carthage bootstrap --platform iOS,Mac,tvOS

script:
- xcodebuild clean build -project Brick.xcodeproj -scheme Brick-iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.3'
- xcodebuild test -project Brick.xcodeproj -scheme Brick-iOS -sdk iphonesimulator
- xcodebuild clean build -project Brick.xcodeproj -scheme Brick-Mac -sdk macosx
- xcodebuild test -project Brick.xcodeproj -scheme Brick-Mac -sdk macosx
- xcodebuild clean build -project Brick.xcodeproj -scheme "Brick-tvOS" -destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=9.2'
- xcodebuild test -project Brick.xcodeproj -scheme "Brick-tvOS" -destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=9.2'

osx_image: xcode7.3
language: objective-c

before_install:
- brew update
- if brew outdated | grep -qx carthage; then brew upgrade carthage; fi
- travis_wait 35 carthage bootstrap --platform iOS,Mac,tvOS

script:
- xcodebuild clean build -project Brick.xcodeproj -scheme Brick-iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.3'
- xcodebuild test -project Brick.xcodeproj -scheme Brick-iOS -sdk iphonesimulator
- xcodebuild clean build -project Brick.xcodeproj -scheme Brick-Mac -sdk macosx
- xcodebuild test -project Brick.xcodeproj -scheme Brick-Mac -sdk macosx
- xcodebuild clean build -project Brick.xcodeproj -scheme "Brick-tvOS" -destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=9.2'
  #- xcodebuild test -project Brick.xcodeproj -scheme "Brick-tvOS" -destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=9.2'

Remove running tests on tvOS
Remove running tests on tvOS
