File tree Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 33
33
script :
34
34
- travis_retry ./scripts/if_changed.sh ./scripts/build.sh $PROJECT $PLATFORM
35
35
36
+ - stage : test
37
+ env :
38
+ - PROJECT=Core PLATFORM=iOS METHOD=pod-lib-lint
39
+ before_install :
40
+ - ./scripts/if_changed.sh ./scripts/install_prereqs.sh
41
+ script :
42
+ - travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseCore.podspec
43
+ - travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseCore.podspec --use-libraries
44
+ - travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseCore.podspec --use-modular-headers
45
+
36
46
- stage : test
37
47
env :
38
48
- PROJECT=Functions PLATFORM=iOS METHOD=pod-lib-lint
67
77
- ./scripts/if_changed.sh ./scripts/install_prereqs.sh
68
78
script :
69
79
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh GoogleUtilities.podspec
70
- - travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseCore.podspec
71
80
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseAnalyticsInterop.podspec
72
81
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseAuth.podspec
73
82
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseAuthInterop.podspec
98
107
- ./scripts/install_prereqs.sh
99
108
script :
100
109
- travis_retry ./scripts/pod_lib_lint.sh GoogleUtilities.podspec --use-libraries
101
- - travis_retry ./scripts/pod_lib_lint.sh FirebaseCore.podspec --use-libraries
102
110
- travis_retry ./scripts/pod_lib_lint.sh FirebaseAnalyticsInterop.podspec --use-libraries
103
111
- travis_retry ./scripts/pod_lib_lint.sh FirebaseAuth.podspec --use-libraries
104
112
- travis_retry ./scripts/pod_lib_lint.sh FirebaseAuthInterop.podspec --use-libraries
Original file line number Diff line number Diff line change @@ -100,6 +100,11 @@ - (void)testInitCustomizedOptions {
100
100
- (void )testInitWithContentsOfFile {
101
101
NSString *filePath = [[NSBundle mainBundle ] pathForResource: @" GoogleService-Info"
102
102
ofType: @" plist" ];
103
+ if (filePath == nil ) {
104
+ // Use bundleForClass to allow GoogleService-Info.plist to be in the test target's bundle.
105
+ NSBundle *bundle = [NSBundle bundleForClass: [self class ]];
106
+ filePath = [bundle pathForResource: @" GoogleService-Info" ofType: @" plist" ];
107
+ }
103
108
FIROptions *options = [[FIROptions alloc ] initWithContentsOfFile: filePath];
104
109
[self assertOptionsMatchDefaults: options andProjectID: YES ];
105
110
XCTAssertNil (options.deepLinkURLScheme );
Original file line number Diff line number Diff line change @@ -36,4 +36,10 @@ Firebase Core includes FIRApp and FIROptions which provide central configuration
36
36
'FIRCore_VERSION=' + s . version . to_s + ' Firebase_VERSION=5.20.0' ,
37
37
'OTHER_CFLAGS' => '-fno-autolink'
38
38
}
39
+ s . test_spec 'unit' do |unit_tests |
40
+ unit_tests . source_files = 'Example/Core/Tests/**/*.[mh]'
41
+ unit_tests . requires_app_host = true
42
+ unit_tests . dependency 'OCMock'
43
+ unit_tests . resources = 'Example/Core/App/GoogleService-Info.plist'
44
+ end
39
45
end
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ elif [[ -z "$TRAVIS_COMMIT_RANGE" ]]; then
46
46
else
47
47
case " $PROJECT -$METHOD " in
48
48
Firebase-pod-lib-lint) # Combines Firebase-* and InAppMessaging*
49
- check_changes ' ^(Firebase/Auth|Firebase/Core|Firebase/ Database|Firebase/DynamicLinks|' \
49
+ check_changes ' ^(Firebase/Auth|Firebase/Database|Firebase/DynamicLinks|' \
50
50
' Firebase/Messaging|Firebase/Storage|GoogleUtilities|Interop|Example|' \
51
51
' FirebaseAnalyticsIntop.podspec|FirebaseAuth.podspec|FirebaseAuthInterop.podspec|' \
52
- ' FirebaseCore.podspec| FirebaseDatabase.podspec|FirebaseDynamicLinks.podspec|' \
52
+ ' FirebaseDatabase.podspec|FirebaseDynamicLinks.podspec|' \
53
53
' FirebaseMessaging.podspec|FirebaseStorage.podspec|' \
54
54
' FirebaseStorage.podspec|Firebase/InAppMessagingDisplay|InAppMessagingDisplay|' \
55
55
' InAppMessaging|Firebase/InAppMessaging|' \
66
66
' FirebaseStorage.podspec|Firebase/InstanceID|FirebaseInstanceID.podspec)'
67
67
;;
68
68
69
+ Core-* )
70
+ check_changes ' ^(Firebase/Core|GoogleUtilities|FirebaseCore.podspec)'
71
+ ;;
72
+
69
73
Functions-* )
70
74
check_changes ' ^(Firebase/Core|Functions|GoogleUtilities|FirebaseFunctions.podspec)'
71
75
;;
You can’t perform that action at this time.
0 commit comments