Skip to content

Commit 6abf977

Browse files
committed
Updated the Travis CI config and the schemes.
1 parent a16a082 commit 6abf977

6 files changed

Lines changed: 32 additions & 15 deletions

File tree

.travis.yml

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,37 @@ env:
99
- MACOS_FRAMEWORK_SCHEME="IPAPI macOS"
1010
- TVOS_FRAMEWORK_SCHEME="IPAPI tvOS"
1111
- WATCHOS_FRAMEWORK_SCHEME="IPAPI watchOS"
12+
matrix:
13+
- DESTINATION="OS=3.0,name=Apple Watch - 42mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" RUN_TESTS="NO" POD_LINT="NO"
14+
- DESTINATION="OS=2.0,name=Apple Watch - 42mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" RUN_TESTS="NO" POD_LINT="NO"
15+
16+
- DESTINATION="OS=10.0,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" POD_LINT="YES"
17+
- DESTINATION="OS=9.0,name=iPad 2" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" POD_LINT="NO"
18+
- DESTINATION="OS=8.1,name=iPhone 4S" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" POD_LINT="NO"
19+
20+
- DESTINATION="OS=10.0,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" POD_LINT="NO"
21+
- DESTINATION="OS=9.0,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" POD_LINT="NO"
22+
23+
- DESTINATION="arch=x86_64" SCHEME="$MACOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" POD_LINT="NO"
1224
script:
1325
- set -o pipefail
1426
- xcodebuild -version
1527

16-
# Builds
17-
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$IOS_FRAMEWORK_SCHEME" -destination "platform=iOS Simulator,name=iPhone 6" build | xcpretty;
18-
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$MACOS_FRAMEWORK_SCHEME" build | xcpretty;
19-
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$TVOS_FRAMEWORK_SCHEME" -destination "platform=tvOS Simulator,name=Apple TV 1080p" build | xcpretty;
20-
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$WATCHOS_FRAMEWORK_SCHEME" -destination "platform=watchOS Simulator,name=Apple Watch - 42mm" build | xcpretty;
28+
# Build Framework in Debug and Run Tests if specified
29+
- if [ $RUN_TESTS == "YES" ]; then
30+
travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build-for-testing test | xcpretty;
31+
else
32+
travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
33+
fi
2134

22-
# Tests
23-
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$IOS_FRAMEWORK_SCHEME" -destination "platform=iOS Simulator,name=iPhone 6" build-for-testing test | xcpretty;
24-
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$MACOS_FRAMEWORK_SCHEME" build-for-testing test | xcpretty;
25-
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$TVOS_FRAMEWORK_SCHEME" -destination "platform=tvOS Simulator,name=Apple TV 1080p" build-for-testing test | xcpretty;
35+
# Build Framework in Release and Run Tests if specified
36+
- if [ $RUN_TESTS == "YES" ]; then
37+
travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build-for-testing test | xcpretty;
38+
else
39+
travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;
40+
fi
2641

27-
# Run `pod lib lint`
28-
- pod lib lint;
42+
# Run `pod lib lint` if specified
43+
- if [ $POD_LINT == "YES" ]; then
44+
pod lib lint;
45+
fi

IPAPI.xcodeproj/xcuserdata/arturgrigor.xcuserdatad/xcschemes/IPAPI iOS.xcscheme renamed to IPAPI.xcodeproj/xcshareddata/xcschemes/IPAPI iOS.xcscheme

File renamed without changes.

IPAPI.xcodeproj/xcuserdata/arturgrigor.xcuserdatad/xcschemes/IPAPI macOS.xcscheme renamed to IPAPI.xcodeproj/xcshareddata/xcschemes/IPAPI macOS.xcscheme

File renamed without changes.

IPAPI.xcodeproj/xcuserdata/arturgrigor.xcuserdatad/xcschemes/IPAPI tvOS.xcscheme renamed to IPAPI.xcodeproj/xcshareddata/xcschemes/IPAPI tvOS.xcscheme

File renamed without changes.

IPAPI.xcodeproj/xcuserdata/arturgrigor.xcuserdatad/xcschemes/IPAPI watchOS.xcscheme renamed to IPAPI.xcodeproj/xcshareddata/xcschemes/IPAPI watchOS.xcscheme

File renamed without changes.

IPAPI.xcodeproj/xcuserdata/arturgrigor.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
<dict>
55
<key>SchemeUserState</key>
66
<dict>
7-
<key>IPAPI iOS.xcscheme</key>
7+
<key>IPAPI iOS.xcscheme_^#shared#^_</key>
88
<dict>
99
<key>orderHint</key>
1010
<integer>0</integer>
1111
</dict>
12-
<key>IPAPI macOS.xcscheme</key>
12+
<key>IPAPI macOS.xcscheme_^#shared#^_</key>
1313
<dict>
1414
<key>orderHint</key>
1515
<integer>2</integer>
1616
</dict>
17-
<key>IPAPI tvOS.xcscheme</key>
17+
<key>IPAPI tvOS.xcscheme_^#shared#^_</key>
1818
<dict>
1919
<key>orderHint</key>
2020
<integer>4</integer>
2121
</dict>
22-
<key>IPAPI watchOS.xcscheme</key>
22+
<key>IPAPI watchOS.xcscheme_^#shared#^_</key>
2323
<dict>
2424
<key>orderHint</key>
2525
<integer>6</integer>

0 commit comments

Comments
 (0)