diff --git a/.travis.yml b/.travis.yml index aac3da0..bf9d0d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,14 @@ language: objective-c osx_image: xcode9 -matrix: - include: - - script: - - xcodebuild clean build test -project SweetRouter.xcodeproj -scheme SweetRouter -destination 'platform=iOS Simulator,OS=11.0,name=iPhone 8 Plus' +env: + - ACTION=test PLATFORM=Mac DESTINATION='platform=OS X' + - ACTION=test PLATFORM=iOS DESTINATION='platform=iOS Simulator,name=iPhone 8' + - ACTION=build PLATFORM=watchOS DESTINATION='platform=watchOS Simulator,name=Apple Watch - 38mm' + - ACTION=test PLATFORM=tvOS DESTINATION='platform=tvOS Simulator,name=Apple TV 1080p' - - script: - - xcodebuild clean build test -project SweetRouter.xcodeproj -scheme SweetRouter-tvOS -destination 'platform=tvOS Simulator,OS=10.2,name=Apple TV 1080p' - - - script: - - xcodebuild clean build test -project SweetRouter.xcodeproj -scheme SweetRouter-Mac - - - script: - - xcodebuild clean build -project SweetRouter.xcodeproj -scheme SweetRouter-watchOS +script: + - xcodebuild clean $ACTION -project SweetRouter.xcodeproj -scheme SweetRouter -destination "$DESTINATION" after_success: - bash <(curl -s https://codecov.io/bash)