File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
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
4
9
env :
5
10
- PLATFORM=Mac
6
11
- PLATFORM=iOS NAME='iPhone SE'
7
12
- PLATFORM=tvOS NAME='Apple TV 1080p'
8
13
- PLATFORM=watchOS
9
-
10
14
before_install :
11
15
- if [ -n "$NAME" ]; then
12
16
export UUID=$(instruments -s | ruby -e "ARGF.each_line{ |ln| ln =~ /$NAME .* \[(.*)\]/; if \$1; puts(\$1); exit; end }");
13
17
fi
14
-
15
18
install :
16
19
- carthage bootstrap --platform $PLATFORM
17
-
18
20
script :
19
21
- set -o pipefail;
20
22
case $PLATFORM in
21
23
Mac)
22
24
xcodebuild -scheme PMKCoreLocation test | xcpretty;;
23
25
iOS|tvOS)
24
- xcrun instruments -w "$UUID";
25
- sleep 15;
26
+ open -a "simulator" --args -CurrentDeviceUDID "$UUID";
26
27
xcodebuild -scheme PMKCoreLocation -destination "id=$UUID" test | xcpretty;;
27
28
watchOS)
28
29
xcodebuild -scheme PMKCoreLocation -destination "name=Apple Watch - 38mm" | xcpretty;;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import XCTest
6
6
class CLGeocoderTests : XCTestCase {
7
7
func test_reverseGeocodeLocation( ) {
8
8
class MockGeocoder : CLGeocoder {
9
- private override func reverseGeocodeLocation( _ location: CLLocation , completionHandler: @escaping CLGeocodeCompletionHandler ) {
9
+ override func reverseGeocodeLocation( _ location: CLLocation , completionHandler: @escaping CLGeocodeCompletionHandler ) {
10
10
after ( interval: 0 ) . then {
11
11
completionHandler ( [ dummyPlacemark] , nil )
12
12
}
@@ -23,8 +23,7 @@ class CLGeocoderTests: XCTestCase {
23
23
24
24
func test_geocodeAddressDictionary( ) {
25
25
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 ) {
28
27
after ( interval: 0.0 ) . then {
29
28
completionHandler ( [ dummyPlacemark] , nil )
30
29
}
You can’t perform that action at this time.
0 commit comments