Skip to content

Commit 70062c1

Browse files
gabrieldonadelfacebook-github-bot
authored andcommitted
ci: Add build tests for RNTester (#33033)
Summary: Add 4 new jobs to CI in order to test RNTester builds on both Android and iOS using Hermes and JSC Closes #32676 ## Changelog [General] [Added] - Add build tests for RNTester to CircleCI Pull Request resolved: #33033 Test Plan: Make sure builds are working as expected and CI is green Reviewed By: lunaleaps Differential Revision: D33982864 Pulled By: philIip fbshipit-source-id: 00b2116be1b6484324e8162cc691b1d0863d282d
1 parent 5e933fd commit 70062c1

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

.circleci/config.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,37 @@ jobs:
588588
name: Build the template application
589589
command: cd template/android/ && ./gradlew assembleDebug
590590

591+
# -------------------------
592+
# JOBS: Test Android RNTester
593+
# -------------------------
594+
test_android_rntester:
595+
executor: reactnativeandroid
596+
parameters:
597+
use_hermes:
598+
type: boolean
599+
default: false
600+
steps:
601+
- checkout
602+
- run_yarn
603+
604+
- run:
605+
name: Generate artifacts for Maven
606+
command: ./gradlew :ReactAndroid:installArchives
607+
608+
- when:
609+
condition: << parameters.use_hermes >>
610+
steps:
611+
- run:
612+
name: Build RNTester with Hermes
613+
command: ./gradlew :packages:rn-tester:android:app:assembleHermesDebug
614+
- when:
615+
condition:
616+
not: << parameters.use_hermes >>
617+
steps:
618+
- run:
619+
name: Build RNTester with JSC
620+
command: ./gradlew :packages:rn-tester:android:app:assembleJscDebug
621+
591622
# -------------------------
592623
# JOBS: Test iOS Template
593624
# -------------------------
@@ -621,6 +652,40 @@ jobs:
621652
-scheme $PROJECT_NAME \
622653
-sdk iphonesimulator
623654
655+
# -------------------------
656+
# JOBS: Test iOS RNTester
657+
# -------------------------
658+
test_ios_rntester:
659+
executor: reactnativeios
660+
parameters:
661+
use_hermes:
662+
type: boolean
663+
default: false
664+
steps:
665+
- checkout
666+
- run_yarn
667+
668+
- when:
669+
condition: << parameters.use_hermes >>
670+
steps:
671+
- run:
672+
name: Set USE_HERMES=1
673+
command: echo "export USE_HERMES=1" >> $BASH_ENV
674+
675+
- run:
676+
name: Install CocoaPods dependencies
677+
command: |
678+
rm -rf packages/rn-tester/Pods
679+
cd packages/rn-tester && bundle exec pod install
680+
681+
- run:
682+
name: Build RNTester
683+
command: |
684+
xcodebuild build \
685+
-workspace packages/rn-tester/RNTesterPods.xcworkspace \
686+
-scheme RNTester \
687+
-sdk iphonesimulator
688+
624689
# -------------------------
625690
# JOBS: Windows
626691
# -------------------------
@@ -885,12 +950,34 @@ workflows:
885950
filters:
886951
branches:
887952
ignore: gh-pages
953+
- test_android_rntester:
954+
name: test_android_rntester_hermes
955+
use_hermes: true
956+
filters:
957+
branches:
958+
ignore: gh-pages
959+
- test_android_rntester:
960+
name: test_android_rntester_jsc
961+
filters:
962+
branches:
963+
ignore: gh-pages
888964
- test_ios_template:
889965
requires:
890966
- build_npm_package
891967
filters:
892968
branches:
893969
ignore: gh-pages
970+
- test_ios_rntester:
971+
name: test_ios_rntester_hermes
972+
use_hermes: true
973+
filters:
974+
branches:
975+
ignore: gh-pages
976+
- test_ios_rntester:
977+
name: test_ios_rntester_jsc
978+
filters:
979+
branches:
980+
ignore: gh-pages
894981
- test_ios:
895982
name: test_ios_unit_jsc
896983
run_unit_tests: true

0 commit comments

Comments
 (0)