Setting up Android emulator
This commit is contained in:
parent
c1c36ad30e
commit
2c6af1bca0
|
@ -2,7 +2,7 @@ defaults: &defaults
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
|
|
||||||
orbs:
|
orbs:
|
||||||
rn: react-native-community/react-native@7.1.1
|
android: circleci/android@2.1.2
|
||||||
|
|
||||||
macos: &macos
|
macos: &macos
|
||||||
macos:
|
macos:
|
||||||
|
@ -451,18 +451,23 @@ jobs:
|
||||||
|
|
||||||
android-experimental-test:
|
android-experimental-test:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
docker:
|
executor:
|
||||||
- image: cimg/android:2022.03.1-node
|
name: android/android-machine
|
||||||
environment:
|
resource-class: large
|
||||||
<<: *android-env
|
|
||||||
<<: *bash-env
|
|
||||||
resource_class: large
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache: *restore-npm-cache-linux
|
- restore_cache: *restore-npm-cache-linux
|
||||||
- run: *install-npm-modules
|
- run: *install-npm-modules
|
||||||
- restore_cache: *restore-gradle-cache
|
- restore_cache: *restore-gradle-cache
|
||||||
- create-e2e-account-file
|
- create-e2e-account-file
|
||||||
|
- android/create-avd:
|
||||||
|
avd-name: myavd
|
||||||
|
install: true
|
||||||
|
system-image: system-images;android-31;default;x86
|
||||||
|
- android/start-emulator:
|
||||||
|
avd-name: myavd
|
||||||
|
no-window: true
|
||||||
|
restore-gradle-cache-prefix: v1a
|
||||||
- run:
|
- run:
|
||||||
name: Configure Gradle
|
name: Configure Gradle
|
||||||
command: |
|
command: |
|
||||||
|
@ -482,12 +487,15 @@ jobs:
|
||||||
echo -e "KEY_PASSWORD=$KEYSTORE_EXPERIMENTAL_PASSWORD" >> ./gradle.properties
|
echo -e "KEY_PASSWORD=$KEYSTORE_EXPERIMENTAL_PASSWORD" >> ./gradle.properties
|
||||||
working_directory: android
|
working_directory: android
|
||||||
- run:
|
- run:
|
||||||
name: Run Detox Tests
|
name: Build Android
|
||||||
command: |
|
command: |
|
||||||
yarn detox build --configuration android.emu.release
|
yarn detox build --configuration android.att.debug
|
||||||
yarn detox test --configuration android.emu.release --cleanup --headless
|
|
||||||
- save_cache: *save-npm-cache-linux
|
- save_cache: *save-npm-cache-linux
|
||||||
- save_cache: *save-gradle-cache
|
- save_cache: *save-gradle-cache
|
||||||
|
- run:
|
||||||
|
name: Run Detox Tests
|
||||||
|
command: |
|
||||||
|
yarn detox test --configuration android.att.debug --cleanup --headless
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue