This repository was archived by the owner on Mar 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +29
-4
lines changed Expand file tree Collapse file tree 1 file changed +29
-4
lines changed Original file line number Diff line number Diff line change 1
1
language : objective-c
2
- osx_image : xcode7.2
3
- xcode_sdk : iphonesimulator9.2
2
+ osx_image : xcode7.3
4
3
branches :
5
4
only :
6
5
- master
6
+
7
+ env :
8
+ global :
9
+ - PROJECT_NAME="KeyboardHelper.xcodeproj"
10
+ - IOS_FRAMEWORK_SCHEME="KeyboardHelper"
11
+ # - OSX_FRAMEWORK_SCHEME="Serializable OSX"
12
+ # - TVOS_FRAMEWORK_SCHEME="Serializable tvOS"
13
+ # - WATCHOS_FRAMEWORK_SCHEME="Serializable watchOS"
14
+ - IOS_SDK=iphonesimulator9.3
15
+ - OSX_SDK=macosx10.11
16
+ - TVOS_SDK=appletvsimulator9.2
17
+ - WATCHOS_SDK=watchsimulator2.2
18
+ matrix :
19
+ - DESTINATION="OS=9.3,name=iPhone 6S Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES"
20
+ # - DESTINATION="arch=x86_64" SCHEME="$OSX_FRAMEWORK_SCHEME" SDK="$OSX_SDK" RUN_TESTS="YES"
21
+ # - DESTINATION="OS=9.2,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES"
22
+ # - DESTINATION="OS=2.2,name=Apple Watch - 38mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO"
23
+
7
24
script :
8
- - set -o pipefail && xcodebuild -project KeyboardHelper.xcodeproj -scheme KeyboardHelper -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6S,OS=9.2' build test | xcpretty
25
+ - set -o pipefail
26
+
27
+ # Build Framework in Debug and Run Tests if specified
28
+ - if [ $RUN_TESTS == "YES" ]; then
29
+ xcodebuild -project "$PROJECT_NAME" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty;
30
+ else
31
+ xcodebuild -project "$PROJECT_NAME" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
32
+ fi
33
+
34
+ - xcodebuild -project "$PROJECT_NAME" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;
9
35
after_success :
10
36
- bash <(curl -s https://codecov.io/bash)
11
-
You can’t perform that action at this time.
0 commit comments