Skip to content

Commit

Permalink
test_android_template → test_android_helloworld (#44908)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #44908

Doing this just to validate changes.  It doesn't have to land.

Changelog: [General] [Changed] - CircleCI test to Helloworld

Differential Revision: D58469912
  • Loading branch information
blakef authored and facebook-github-bot committed Jun 13, 2024
1 parent cdb18d0 commit 01a5bfb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
30 changes: 12 additions & 18 deletions .circleci/configurations/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ jobs:
destination: rntester-apk

# -------------------------
# JOBS: Test Android Template
# JOBS: Test Android HelloWorld
# -------------------------
test_android_template:
test_android_helloworld:
executor: reactnativeandroid-large
parameters:
flavor:
Expand All @@ -355,29 +355,23 @@ jobs:
- run_yarn
- attach_workspace:
at: .
- run:
name: Create Android template project
command: |
REPO_ROOT=$(pwd)
node ./scripts/releases/update-template-package.js "{\"react-native\":\"file:$REPO_ROOT/build/$(cat build/react-native-package-version)\"}"
node ./scripts/e2e/init-template-e2e.js --projectName $PROJECT_NAME --templatePath "$REPO_ROOT/packages/react-native" --directory "/tmp/$PROJECT_NAME" --verbose
- with_gradle_cache:
steps:
- run:
name: Build the template application for << parameters.flavor >> with Architecture set to << parameters.architecture >>, and using the << parameters.jsengine>> JS engine.
command: |
cd /tmp/$PROJECT_NAME/android/
if [[ << parameters.architecture >> == "NewArch" ]]; then
export ORG_GRADLE_PROJECT_newArchEnabled=true
else
export ORG_GRADLE_PROJECT_newArchEnabled=false
cd packages/helloworld/android
args=()
if [[ << parameters.architecture >> == "OldArch" ]]; then
args+=(--arch old)
fi
if [[ << parameters.jsengine >> == "Hermes" ]]; then
export ORG_GRADLE_PROJECT_hermesEnabled=true
else
export ORG_GRADLE_PROJECT_hermesEnabled=false
if [[ << parameters.jsengine >> == "JSC" ]]; then
args+=(--jsvm jsc)
fi
if [[ << parameters.flavor >> == "Release" ]]; then
args+=(--prod)
fi
./gradlew assemble<< parameters.flavor >> -Preact.internal.mavenLocalRepo=/root/react-native/maven-local
yarn build android "${args[@]}" -P react.internal.mavenLocalRepo=/tmp/maven-local
- store_artifacts:
path: /tmp/AndroidTemplateProject/android/app/build/outputs/apk/
Expand Down
4 changes: 2 additions & 2 deletions .circleci/configurations/test_workflows/testAll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
- test_android:
requires:
- build_android
- test_android_template:
- test_android_helloworld:
requires:
- build_npm_package
- build_android
matrix:
parameters:
architecture: ["NewArch", "OldArch"]
Expand Down
4 changes: 2 additions & 2 deletions .circleci/configurations/test_workflows/testAndroid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
requires:
- build_android
# - test_e2e_android
- test_android_template:
- test_android_helloworld:
requires:
- build_npm_package
- build_android
matrix:
parameters:
architecture: ["NewArch", "OldArch"]
Expand Down

0 comments on commit 01a5bfb

Please sign in to comment.