Skip to content

Commit fe9d7f2

Browse files
committed
Update Travis to Xcode 8.3
1 parent 426dc46 commit fe9d7f2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
language: objective-c
2-
osx_image: xcode8
3-
2+
osx_image: xcode8.3
3+
matrix:
4+
include:
5+
- osx_image: xcode8
6+
- osx_image: xcode8.1
7+
- osx_image: xcode8.2
8+
- osx_image: xcode9
49
env:
510
- PLATFORM=Mac
611
- PLATFORM=iOS NAME='iPhone SE'
712
- PLATFORM=tvOS NAME='Apple TV 1080p'
813
- PLATFORM=watchOS
9-
1014
before_install:
1115
- if [ -n "$NAME" ]; then
1216
export UUID=$(instruments -s | ruby -e "ARGF.each_line{ |ln| ln =~ /$NAME .* \[(.*)\]/; if \$1; puts(\$1); exit; end }");
1317
fi
14-
1518
install:
1619
- carthage bootstrap --platform $PLATFORM
17-
1820
script:
1921
- set -o pipefail;
2022
case $PLATFORM in
2123
Mac)
2224
xcodebuild -scheme PMKCoreLocation test | xcpretty;;
2325
iOS|tvOS)
24-
xcrun instruments -w "$UUID";
25-
sleep 15;
26+
open -a "simulator" --args -CurrentDeviceUDID "$UUID";
2627
xcodebuild -scheme PMKCoreLocation -destination "id=$UUID" test | xcpretty;;
2728
watchOS)
2829
xcodebuild -scheme PMKCoreLocation -destination "name=Apple Watch - 38mm" | xcpretty;;

Tests/CLGeocoderTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import XCTest
66
class CLGeocoderTests: XCTestCase {
77
func test_reverseGeocodeLocation() {
88
class MockGeocoder: CLGeocoder {
9-
private override func reverseGeocodeLocation(_ location: CLLocation, completionHandler: @escaping CLGeocodeCompletionHandler) {
9+
override func reverseGeocodeLocation(_ location: CLLocation, completionHandler: @escaping CLGeocodeCompletionHandler) {
1010
after(interval: 0).then {
1111
completionHandler([dummyPlacemark], nil)
1212
}
@@ -23,8 +23,7 @@ class CLGeocoderTests: XCTestCase {
2323

2424
func test_geocodeAddressDictionary() {
2525
class MockGeocoder: CLGeocoder {
26-
27-
private override func geocodeAddressDictionary(_ addressDictionary: [AnyHashable : Any], completionHandler: @escaping CLGeocodeCompletionHandler) {
26+
override func geocodeAddressDictionary(_ addressDictionary: [AnyHashable : Any], completionHandler: @escaping CLGeocodeCompletionHandler) {
2827
after(interval: 0.0).then {
2928
completionHandler([dummyPlacemark], nil)
3029
}

0 commit comments

Comments
 (0)