@@ -5,59 +5,49 @@ language: objective-c
55xcode_workspace : OneTimePassword.xcworkspace
66xcode_scheme : OneTimePassword (iOS)
77
8- osx_image : xcode10
8+ osx_image : xcode10.3
9+
10+ before_install :
11+ - gem install cocoapods -v 1.7
912
1013env :
1114 - RUNTIME="iOS 10.3" DEVICE="iPhone 7 Plus"
12- - RUNTIME="iOS 11.3 " DEVICE="iPhone X"
13- - RUNTIME="iOS 12.0 " DEVICE="iPhone XS Max"
15+ - RUNTIME="iOS 11.4 " DEVICE="iPhone X"
16+ - RUNTIME="iOS 12.4 " DEVICE="iPhone XS Max"
1417
1518# Include builds for watchOS
1619matrix :
1720 include :
18- # Include an Xcode 9.0 build to test Swift 4.0 support
19- - osx_image : xcode9
20- env : RUNTIME="iOS 11.0" DEVICE="iPhone 8"
21- # Include an Xcode 9.2 build to test on iOS 8.x, because Xcode 9.3's iOS 8 simulator fails to launch
22- - osx_image : xcode9.2
23- env : RUNTIME="iOS 8.4" DEVICE="iPhone 4s"
24- # Include an Xcode 9.4 build to ensure compatibility until Xcode 10 is in widespread use
25- - osx_image : xcode9.4
26- env : RUNTIME="iOS 9.3" DEVICE="iPhone 6s"
2721 # Include several build-only jobs for watchOS
2822 - xcode_scheme : OneTimePassword (watchOS)
29- env : BUILD_ONLY="YES" RUNTIME="watchOS 5.0 " DEVICE="Apple Watch Series 4 - 44mm"
23+ env : BUILD_ONLY="YES" RUNTIME="watchOS 5.1 " DEVICE="Apple Watch Series 4 - 44mm"
3024 - xcode_scheme : OneTimePassword (watchOS)
31- osx_image : xcode9.4
32- env : BUILD_ONLY="YES" RUNTIME="watchOS 4.3" DEVICE="Apple Watch Series 3 - 38mm"
25+ env : BUILD_ONLY="YES" RUNTIME="watchOS 4.2" DEVICE="Apple Watch Series 3 - 38mm"
3326 - xcode_scheme : OneTimePassword (watchOS)
3427 env : BUILD_ONLY="YES" RUNTIME="watchOS 3.2" DEVICE="Apple Watch Series 2 - 42mm"
3528 - xcode_scheme : OneTimePassword (watchOS)
29+ osx_image : xcode10.2
3630 env : BUILD_ONLY="YES" RUNTIME="watchOS 2.0" DEVICE="Apple Watch - 38mm"
37- # Include Carthage builds
31+ # Build with Carthage
3832 - env :
3933 before_script :
4034 script : carthage build --no-skip-current
41- - osx_image : xcode9
35+ # Build with CocoaPods
36+ - &cocoapods
4237 env :
4338 before_script :
44- script : carthage build --no-skip-current
45- # Include CocoaPods builds
46- - env :
47- before_script :
48- script : pod lib lint --allow-warnings
49- - osx_image : xcode9
50- env :
51- before_install : gem update cocoapods
52- before_script :
53- script : pod lib lint --allow-warnings --verbose
54- allow_failures :
55- # Allow the Xcode 9 `pod lib lint` to fail, as this test method currently has an issue using the custom CommonCrypto module maps.
56- - osx_image : xcode9
57- env :
58- before_install : gem update cocoapods
59- before_script :
6039 script : pod lib lint --allow-warnings --verbose
40+ # Build with Xcode 10.1 and Swift 4.2
41+ - &swift42
42+ osx_image : xcode10.1
43+ env : RUNTIME="iOS 8.4" DEVICE="iPhone 4s"
44+ script : set -o pipefail && xcodebuild -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "$TRAVIS_XCODE_SCHEME" -destination "id=$DESTINATION_ID" SWIFT_VERSION=4.2 $ACTIONS | xcpretty -c
45+ - << : *swift42
46+ env : RUNTIME="iOS 9.3" DEVICE="iPhone 6s"
47+ # Build with CocoaPods and Swift 4.2
48+ - << : *cocoapods
49+ osx_image : xcode10.1
50+ script : pod lib lint --allow-warnings --verbose --swift-version=4.2
6151
6252before_script :
6353 - DEVICE_ID=com.apple.CoreSimulator.SimDeviceType.$(echo $DEVICE | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g")
0 commit comments