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 14, 2024
1 parent 3baafd3 commit 29a9ca1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
41 changes: 21 additions & 20 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 @@ -350,35 +350,36 @@ jobs:
environment:
- PROJECT_NAME: "AndroidTemplateProject"
- YARN_ENABLE_IMMUTABLE_INSTALLS: false
- TARGET_ARCHITECTURE: "arm64-v8a"
steps:
- checkout_code_with_cache
- 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
- build_codegen_js:
steps:
- run:
name: Build codegen js scripts from flow -> JS
command: |
cd packages/react-native-codegen
yarn run build
- 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.
name: Build the Helloworld 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
./gradlew assemble<< parameters.flavor >> -Preact.internal.mavenLocalRepo=/root/react-native/maven-local
if [[ << parameters.flavor >> == "Release" ]]; then
args+=(--prod)
fi
yarn build android "${args[@]}" -P reactNativeArchitecture="$TARGET_ARCHITECTURE"
- store_artifacts:
path: /tmp/AndroidTemplateProject/android/app/build/outputs/apk/
destination: template-apk
Expand Down
4 changes: 1 addition & 3 deletions .circleci/configurations/test_workflows/testAll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@
- test_android:
requires:
- build_android
- test_android_template:
requires:
- build_npm_package
- test_android_helloworld:
matrix:
parameters:
architecture: ["NewArch", "OldArch"]
Expand Down
4 changes: 1 addition & 3 deletions .circleci/configurations/test_workflows/testAndroid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
requires:
- build_android
# - test_e2e_android
- test_android_template:
requires:
- build_npm_package
- test_android_helloworld:
matrix:
parameters:
architecture: ["NewArch", "OldArch"]
Expand Down

0 comments on commit 29a9ca1

Please sign in to comment.