Skip to content

Commit

Permalink
Remove sdk from build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jcavar authored and dimazen committed Dec 7, 2019
1 parent 01897bd commit 0b0e007
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,18 @@ env:
- TVOS_SCHEME="FastEasyMapping tvOS"
- WATCHOS_SCHEME="FastEasyMapping watchOS"

- IOS_SDK=iphonesimulator13.2
- MACOS_SDK=macosx10.15
- TVOS_SDK=appletvsimulator13.2
- WATCHOS_SDK=watchsimulator6.1

matrix:
- SCHEME="$IOS_SCHEME" SDK="$IOS_SDK" DESTINATION="OS=11.4,name=iPhone 6"
- SCHEME="$IOS_SCHEME" SDK="$IOS_SDK" DESTINATION="OS=12.1,name=iPhone SE"
- SCHEME="$IOS_SCHEME" SDK="$IOS_SDK" DESTINATION="OS=13.2.2,name=iPhone 8"
- SCHEME="$IOS_SCHEME" DESTINATION="OS=11.4,name=iPhone 6"
- SCHEME="$IOS_SCHEME" DESTINATION="OS=12.1,name=iPhone SE"
- SCHEME="$IOS_SCHEME" DESTINATION="OS=13.2.2,name=iPhone 8"

- SCHEME="$MACOS_SCHEME" SDK="$MACOS_SDK" DESTINATION="arch=x86_64"
- SCHEME="$MACOS_SCHEME" DESTINATION="arch=x86_64"

- SCHEME="$TVOS_SCHEME" SDK="$TVOS_SDK" DESTINATION="OS=12.1,name=Apple TV 4K (at 1080p)" RUN_TESTS="NO"
- SCHEME="$TVOS_SCHEME" SDK="$TVOS_SDK" DESTINATION="OS=13.2,name=Apple TV 4K (at 1080p)" RUN_TESTS="NO"
- SCHEME="$TVOS_SCHEME" DESTINATION="OS=12.1,name=Apple TV 4K (at 1080p)" RUN_TESTS="NO"
- SCHEME="$TVOS_SCHEME" DESTINATION="OS=13.2,name=Apple TV 4K (at 1080p)" RUN_TESTS="NO"

- SCHEME="$WATCHOS_SCHEME" SDK="$WATCHOS_SDK" DESTINATION="OS=5.1,name=Apple Watch Series 2 - 38mm" RUN_TESTS="NO"
- SCHEME="$WATCHOS_SCHEME" SDK="$WATCHOS_SDK" DESTINATION="OS=6.1,name=Apple Watch Series 5 - 44mm" RUN_TESTS="NO"
- SCHEME="$WATCHOS_SCHEME" DESTINATION="OS=5.1,name=Apple Watch Series 2 - 38mm" RUN_TESTS="NO"
- SCHEME="$WATCHOS_SCHEME" DESTINATION="OS=6.1,name=Apple Watch Series 5 - 44mm" RUN_TESTS="NO"

script:
- set -o pipefail
Expand All @@ -45,19 +40,19 @@ script:
# Build Framework in Debug and Run Tests if specified
- |
if [ $RUN_TESTS == "YES" ]; then
xcodebuild build-for-testing -configuration Debug -enableCodeCoverage YES -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" | xcpretty
xcodebuild test-without-building -configuration Debug -enableCodeCoverage YES -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" | xcpretty
xcodebuild build-for-testing -configuration Debug -enableCodeCoverage YES -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" | xcpretty
xcodebuild test-without-building -configuration Debug -enableCodeCoverage YES -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" | xcpretty
else
xcodebuild build -configuration Debug -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" | xcpretty
xcodebuild build -configuration Debug -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" | xcpretty
fi;
# Build Framework in Release and Run Tests if specified
- |
if [ $RUN_TESTS == "YES" ]; then
xcodebuild build-for-testing -configuration Release -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" | xcpretty
xcodebuild test-without-building -configuration Release -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" | xcpretty
xcodebuild build-for-testing -configuration Release -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" | xcpretty
xcodebuild test-without-building -configuration Release -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" | xcpretty
else
xcodebuild build -configuration Release -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" | xcpretty
xcodebuild build -configuration Release -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" | xcpretty
fi
after_success:
Expand Down

0 comments on commit 0b0e007

Please sign in to comment.