Skip to content

Commit 5adbeae

Browse files
committed
Verify RNTesterPods can be built
1 parent c2824dd commit 5adbeae

File tree

3 files changed

+72
-31
lines changed

3 files changed

+72
-31
lines changed

.circleci/config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,29 @@ jobs:
399399
# kill whatever is occupying port 5555 (web socket server)
400400
lsof -i tcp:5555 | awk 'NR!=1 {print $2}' | xargs kill
401401
402+
- run:
403+
name: Fetch CocoaPods Specs
404+
command: |
405+
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
406+
407+
- run:
408+
name: Generate RNTesterPods workspace using CocoaPods
409+
command: cd RNTester && pod install
410+
411+
- run:
412+
name: Build RNTesterPods
413+
command: |
414+
source ./scripts/.tests.env
415+
xcodebuild \
416+
-workspace RNTester/RNTesterPods.xcworkspace \
417+
-scheme Pods-RNTester \
418+
-sdk iphonesimulator \
419+
-destination "platform=iOS Simulator,name=$IOS_DEVICE,OS=$IOS_TARGET_OS" \
420+
-UseModernBuildSystem=NO \
421+
build | \
422+
xcpretty --report junit --output "$REPORTS_DIR/junit/ios_cocoapod_build/results.xml" && \
423+
exit "${PIPESTATUS[0]}"
424+
402425
- store_test_results:
403426
path: ~/reports/junit
404427

RNTester/Podfile.lock

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ PODS:
4040
- React-DevSupport (1000.0.0):
4141
- React-Core (= 1000.0.0)
4242
- React-RCTWebSocket (= 1000.0.0)
43-
- React-fishhook (1000.0.0)
43+
- React-jscallinvoker (1000.0.0):
44+
- Folly (= 2018.10.22.00)
45+
- React-cxxreact (= 1000.0.0)
4446
- React-jsi (1000.0.0):
4547
- boost-for-react-native (= 1.63.0)
4648
- DoubleConversion
@@ -84,17 +86,18 @@ PODS:
8486
- React-Core (= 1000.0.0)
8587
- React-RCTWebSocket (1000.0.0):
8688
- React-Core (= 1000.0.0)
87-
- React-fishhook (= 1000.0.0)
8889
- React-turbomodule-core (1000.0.0):
8990
- Folly (= 2018.10.22.00)
9091
- React-Core (= 1000.0.0)
9192
- React-cxxreact (= 1000.0.0)
93+
- React-jscallinvoker (= 1000.0.0)
9294
- React-jsi (= 1000.0.0)
9395
- React-turbomodule-core/core-ios (= 1000.0.0)
9496
- React-turbomodule-core/core-ios (1000.0.0):
9597
- Folly (= 2018.10.22.00)
9698
- React-Core (= 1000.0.0)
9799
- React-cxxreact (= 1000.0.0)
100+
- React-jscallinvoker (= 1000.0.0)
98101
- React-jsi (= 1000.0.0)
99102
- React-turbomodule-samples (1000.0.0):
100103
- Folly (= 2018.10.22.00)
@@ -120,7 +123,7 @@ DEPENDENCIES:
120123
- React-Core (from `../React`)
121124
- React-cxxreact (from `../ReactCommon/cxxreact`)
122125
- React-DevSupport (from `../React`)
123-
- React-fishhook (from `../Libraries/fishhook`)
126+
- React-jscallinvoker (from `../ReactCommon/jscallinvoker`)
124127
- React-jsi (from `../ReactCommon/jsi`)
125128
- React-jsiexecutor (from `../ReactCommon/jsiexecutor`)
126129
- React-jsinspector (from `../ReactCommon/jsinspector`)
@@ -160,8 +163,8 @@ EXTERNAL SOURCES:
160163
:path: "../ReactCommon/cxxreact"
161164
React-DevSupport:
162165
:path: "../React"
163-
React-fishhook:
164-
:path: "../Libraries/fishhook"
166+
React-jscallinvoker:
167+
:path: "../ReactCommon/jscallinvoker"
165168
React-jsi:
166169
:path: "../ReactCommon/jsi"
167170
React-jsiexecutor:
@@ -202,30 +205,30 @@ SPEC CHECKSUMS:
202205
DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2
203206
Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51
204207
glog: 1f3da668190260b06b429bb211bfbee5cd790c28
205-
React: e7b61c9123f89c4cd9becea2122af02568be6e13
206-
React-ART: 3dba78ec04b585a82456d1df4bda7a08dbc83a8d
207-
React-Core: d1c3aa4b1c5c57bf839de3c83396b59c1efbf1ba
208-
React-cxxreact: 5f2b678adbe8ff5256801603e1b496e481bc2430
209-
React-DevSupport: 9bde3ce4f7707d9487759101ea3188f4f07c9003
210-
React-fishhook: a9a43c2c84ab2519809810bcdd363e2774007c69
211-
React-jsi: cdf32eb002ff3e243364a1abb71925e0e93003db
212-
React-jsiexecutor: 6e53c44a5371297f0c9cc39780f12cb3efba3b81
213-
React-jsinspector: 2f42a591151e828d0422cbd3b609eedcb920d58e
214-
React-RCTActionSheet: 4ad4bfac1ba9ec020edf278362855448d607cafd
215-
React-RCTAnimation: f050e9fbe85e5616f74cea7a2557bdfb6be73cee
216-
React-RCTBlob: 9f907aab3417a43bbda84aef76f88ee528e877d4
217-
React-RCTImage: 4234a754ebdb922416f5f77cff121c680fd3ccbe
218-
React-RCTLinking: 3a52500942cc73999df19f541b7bda5887c3c43d
219-
React-RCTNetwork: 2042d2648e1160770ac0e5068bb5b648c03296a5
220-
React-RCTPushNotification: 3cfbf863d0597b5da80a15c9a9285a0ad89b23ba
221-
React-RCTSettings: 8099c9d904c0fbe46c463de8791478b5bc72809e
222-
React-RCTText: c4a643a08fce4727316366fea5ad17fa14f72f54
223-
React-RCTVibration: c5933466242187bffe55fa5496f841e04db66c8a
224-
React-RCTWebSocket: 233c66a6394de3816ee46861bbe0dba9f83e45a0
225-
React-turbomodule-core: 7ae77c38b85f6f81be40c0c3dc456d3a5fda4797
226-
React-turbomodule-samples: 483f2c80e81b89197737828405a0ac27c77f58b5
227-
yoga: 56698cdff46e3dbb7aa71fd2fd7dc0ce650dc0fb
208+
React: 8340222126a9c6904ce0024c3e1e6e6196cc6f0e
209+
React-ART: b2d3e01bca980dd35fe78545c2904d35518e252a
210+
React-Core: 8c65fbd05ccdd9ad7a3f51670b0df10ed714f4c5
211+
React-cxxreact: 82143e50f81624c43e8979fcb77095e998f1b3bf
212+
React-DevSupport: dcde6db1427d3ad609d9366dee11c8d2a3be3f5c
213+
React-jscallinvoker: 141ff9acb57490e0278fc39405f20d17cd49cd47
214+
React-jsi: 6afaec6a95060e3b4ccc381d8213bdc7bdb3fc01
215+
React-jsiexecutor: 430cb8b107e31856152ed7fa0e7a7925dbe2e111
216+
React-jsinspector: b6c7e954c8365c7b59082c1447f439a860dd9914
217+
React-RCTActionSheet: f7b031ecfe39c624b90a74a3f3dbcf91955e5253
218+
React-RCTAnimation: e77fa256941f08c8fa5593516379034c2c41dbef
219+
React-RCTBlob: f647b873c48447c04d62287ca2ed9a4b29dd9f0e
220+
React-RCTImage: 2aec4214c6ee36e0d70af38e442e7340ce88c94e
221+
React-RCTLinking: f76a083a21dcfd1da4ccc4b6e004295ccb0c31dc
222+
React-RCTNetwork: 47e9e71e7f977b6d0f74303f2fc9784ab4d553c1
223+
React-RCTPushNotification: 14dcf228b630bb3fab3b4739b0ca48f7161eb246
224+
React-RCTSettings: a2a7c92227b0051431187d6d8c33b9b8835b587d
225+
React-RCTText: 75fc00c3d2dee07306dcfa46f8574d8f61866d79
226+
React-RCTVibration: 2e4bfdfd35ca5a6e6fb1179de45bd61f73d0fa1c
227+
React-RCTWebSocket: 5e47e3525fc897417f89e7e9147633b89917d160
228+
React-turbomodule-core: e56ad8057800e20daaeadf30d20b3602adb82a20
229+
React-turbomodule-samples: 743ee367e2019b7b2bbe1a1e0d70cef4ccb938e8
230+
yoga: c712ddc01bf337f081c33551cf67eea1067b718b
228231

229-
PODFILE CHECKSUM: bb578b8286c0068879a41ac092c9690cc3ede523
232+
PODFILE CHECKSUM: a79215c3ad6df8cdb56fe715f1dfe6f65d89aca6
230233

231-
COCOAPODS: 1.6.3
234+
COCOAPODS: 1.6.1

scripts/objc-test.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ buildProject() {
6969
build
7070
}
7171

72+
buildWorkspace() {
73+
xcodebuild \
74+
-workspace "RNTester/RNTesterPods.xcworkspace" \
75+
-scheme "Pods-RNTester" \
76+
-sdk "$SDK" \
77+
-UseModernBuildSystem="$USE_MODERN_BUILD_SYSTEM" \
78+
build
79+
}
80+
7281
xcprettyFormat() {
7382
if [ "$CI" ]; then
7483
# Circle CI expects JUnit reports to be available here
@@ -97,7 +106,6 @@ main() {
97106
# If first argument is "test", actually start the packager and run tests.
98107
# Otherwise, just build RNTester and exit
99108
if [ "$1" = "test" ]; then
100-
101109
# Start the packager
102110
yarn start --max-workers=1 || echo "Can't start packager automatically" &
103111
# Start the WebSocket test server
@@ -113,6 +121,13 @@ main() {
113121
echo 'Warning: xcpretty is not installed. Install xcpretty to generate JUnit reports.'
114122
runTests
115123
fi
124+
elif [ "$1" = "pods" ]; then
125+
# Build Pods workspace
126+
if [ -x "$(command -v xcpretty)" ]; then
127+
buildWorkspace | xcprettyFormat && exit "${PIPESTATUS[0]}"
128+
else
129+
buildWorkspace
130+
fi
116131
else
117132
# Build without running tests.
118133
if [ -x "$(command -v xcpretty)" ]; then

0 commit comments

Comments
 (0)