language: objective-c
osx_image: xcode12.2

before_install:
  - gem install slather

script:
  - set -o pipefail;
  - xcodebuild build -project Source/OCHamcrest.xcodeproj -scheme OCHamcrest-iOS -sdk iphonesimulator -destination "platform=iOS Simulator,OS=latest,name=iPhone 8NO" | xcpretty
  - xcodebuild build -project Source/OCHamcrest.xcodeproj -scheme OCHamcrest-tvOS -sdk appletvsimulator -destination "platform=tvOS Simulator,OS=latest,name=Apple TVNO" | xcpretty
  - xcodebuild build -project Source/OCHamcrest.xcodeproj -scheme OCHamcrest-watchOS -sdk watchsimulator -destination "platform=watchOS Simulator,OS=latest,name=Apple Watch Series 5 - 44mm" | xcpretty
  - xcodebuild test -project Source/OCHamcrest.xcodeproj -scheme OCHamcrest -sdk macosx | xcpretty
  - pod spec lint --quick

after_success:
  - slather

language: objective-c
osx_image: xcode12.2

before_install:
  - gem install slather

script:
  - set -o pipefail;
  - xcodebuild build -project Source/OCHamcrest.xcodeproj -scheme OCHamcrest-iOS -sdk iphonesimulator -destination "platform=iOS Simulator,OS=latest,name=iPhone 8"
  - xcodebuild build -project Source/OCHamcrest.xcodeproj -scheme OCHamcrest-tvOS -sdk appletvsimulator -destination "platform=tvOS Simulator,OS=latest,name=Apple TV"
  - xcodebuild build -project Source/OCHamcrest.xcodeproj -scheme OCHamcrest-watchOS -sdk watchsimulator -destination "platform=watchOS Simulator,OS=latest,name=Apple Watch Series 5 - 44mm"
  - xcodebuild test -project Source/OCHamcrest.xcodeproj -scheme OCHamcrest -sdk macosx | xcpretty
  - pod spec lint --quick

after_success:
  - slather

Remove xcpretty on build-only jobs
Travis: Remove xcpretty on build-only jobs
