From 6c0f0023623b4feac7d49e1602c9ebd79e6c451e Mon Sep 17 00:00:00 2001 From: Oleksii Dykan Date: Tue, 17 Oct 2017 17:11:56 +0200 Subject: [PATCH] Fix travis yaml --- .travis.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) 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)