File tree Expand file tree Collapse file tree 6 files changed +36
-3
lines changed Expand file tree Collapse file tree 6 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 60
60
before_install :
61
61
- ./scripts/if_changed.sh ./scripts/install_prereqs.sh
62
62
script :
63
- - ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh GoogleDataLogger.podspec
64
63
- ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh GoogleUtilities.podspec
65
64
- ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseCore.podspec
66
65
- ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseAnalyticsInterop.podspec
@@ -114,6 +113,16 @@ jobs:
114
113
# The travis_wait is necessary because the command takes more than 10 minutes.
115
114
- travis_wait ./scripts/if_cron.sh ./scripts/pod_lib_lint.sh FirebaseFirestore.podspec --use-libraries --allow-warnings --no-subspecs
116
115
116
+ # GoogleDataLogger unit tests and pod linting using the default Xcode version.
117
+ - stage : test
118
+ env :
119
+ - PROJECT=GoogleDataLogger PLATFORM=iOS METHOD=xcodebuild
120
+ before_install :
121
+ - ./scripts/if_changed.sh ./scripts/install_prereqs.sh
122
+ script :
123
+ - ./scripts/if_changed.sh ./scripts/build.sh $PROJECT $PLATFORM
124
+ - ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh GoogleDataLogger.podspec
125
+
117
126
# Daily test for symbol collisions between Firebase and CocoaPods.
118
127
- stage : test
119
128
env :
@@ -180,7 +189,6 @@ jobs:
180
189
before_install :
181
190
- ./scripts/if_changed.sh ./scripts/install_prereqs.sh
182
191
script :
183
- - ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh GoogleDataLogger.podspec
184
192
- ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh GoogleUtilities.podspec
185
193
- ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseCore.podspec
186
194
- ./scripts/if_changed.sh ./scripts/pod_lib_lint.sh FirebaseAnalyticsInterop.podspec
Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ source 'https://rubygems.org'
3
3
4
4
gem 'cocoapods' , :git => 'https://github.com/CocoaPods/CocoaPods.git'
5
5
gem 'cocoapods-core' , :git => 'https://github.com/CocoaPods/Core.git'
6
+ gem 'cocoapods-generate' , :git => 'https://github.com/square/cocoapods-generate'
6
7
gem 'xcodeproj' , :git => 'https://github.com/CocoaPods/Xcodeproj.git'
Original file line number Diff line number Diff line change 42
42
colored2 (~> 3.1 )
43
43
nanaimo (~> 0.2.5 )
44
44
45
+ GIT
46
+ remote: https://github.com/square/cocoapods-generate
47
+ revision: 46c337129ad97e52049f673e801fe56361660aa9
48
+ specs:
49
+ cocoapods-generate (1.3.1 )
50
+
45
51
GEM
46
52
remote: https://rubygems.org/
47
53
specs:
@@ -87,7 +93,8 @@ PLATFORMS
87
93
DEPENDENCIES
88
94
cocoapods !
89
95
cocoapods-core !
96
+ cocoapods-generate !
90
97
xcodeproj !
91
98
92
99
BUNDLED WITH
93
- 1.16.1
100
+ 1.17.2
Original file line number Diff line number Diff line change @@ -326,6 +326,15 @@ case "$product-$method-$platform" in
326
326
build
327
327
;;
328
328
329
+ GoogleDataLogger-xcodebuild-iOS)
330
+ RunXcodebuild \
331
+ -workspace ' GoogleDataLogger/gen/GoogleDataLogger/GoogleDataLogger.xcworkspace' \
332
+ -scheme " GoogleDataLogger-Unit-Tests" \
333
+ " ${xcb_flags[@]} " \
334
+ build \
335
+ test
336
+ ;;
337
+
329
338
* )
330
339
echo " Don't know how to build this product-platform-method combination" 1>&2
331
340
echo " product=$product " 1>&2
Original file line number Diff line number Diff line change 66
66
check_changes ' ^(Firestore/(core|third_party)|cmake)'
67
67
;;
68
68
69
+ GoogleDataLogger-* )
70
+ check_changes ' ^(GoogleDataLogger|GoogleDataLogger.podspec)'
71
+ ;;
72
+
69
73
* )
70
74
echo " Unknown project-method combo" 1>&2
71
75
echo " PROJECT=$PROJECT " 1>&2
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ case "$PROJECT-$PLATFORM-$METHOD" in
72
72
bundle exec pod install --project-directory=SymbolCollisionTest --repo-update
73
73
;;
74
74
75
+ GoogleDataLogger-iOS-xcodebuild)
76
+ gem install xcpretty
77
+ bundle exec pod gen GoogleDataLogger.podspec --gen-directory=GoogleDataLogger/gen
78
+ ;;
75
79
* )
76
80
echo " Unknown project-platform-method combo" 1>&2
77
81
echo " PROJECT=$PROJECT " 1>&2
You can’t perform that action at this time.
0 commit comments