CI Setup
This commit is contained in:
parent
7831728b16
commit
edcc665a29
|
@ -153,6 +153,9 @@ commands:
|
|||
if [[ $CIRCLE_JOB == "android-build-experimental" ]]; then
|
||||
./gradlew bundleExperimentalPlayRelease
|
||||
fi
|
||||
if [[ $CIRCLE_JOB == "android-build-e2e" ]]; then
|
||||
./gradlew app:assembleE2ePlayRelease app:assembleE2ePlayReleaseAndroidTest -DtestBuildType=release
|
||||
fi
|
||||
if [[ ! $KEYSTORE ]]; then
|
||||
./gradlew assembleExperimentalPlayDebug
|
||||
fi
|
||||
|
@ -190,6 +193,36 @@ commands:
|
|||
paths:
|
||||
- android/app/build/outputs
|
||||
|
||||
android-e2e-test:
|
||||
description: "End-to-End testing for Android using detox"
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
- node/install:
|
||||
install-yarn: true
|
||||
|
||||
- restore_cache: *restore-npm-cache-linux
|
||||
|
||||
- run: *install-npm-modules
|
||||
|
||||
- run:
|
||||
name: Create avd
|
||||
command: |
|
||||
SYSTEM_IMAGES="system-images;android-28;default;x86"
|
||||
sdkmanager "$SYSTEM_IMAGES"
|
||||
echo "no" | avdmanager --verbose create avd -n "PIXEL_API_28_AOSP" -k "$SYSTEM_IMAGES" -d "pixel"
|
||||
|
||||
- run:
|
||||
name: Launch emulator
|
||||
command: |
|
||||
emulator -avd "PIXEL_API_28_AOSP" -delay-adb -verbose -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
|
||||
background: true
|
||||
|
||||
- run:
|
||||
name: Run the test
|
||||
command: |
|
||||
yarn detox test -c and.emu.release --cleanup
|
||||
|
||||
ios-build:
|
||||
description: "Build iOS app"
|
||||
steps:
|
||||
|
@ -326,6 +359,8 @@ commands:
|
|||
- save_cache: *save-gems-cache
|
||||
|
||||
version: 2.1
|
||||
orbs:
|
||||
node: circleci/node@4.6.0
|
||||
|
||||
# EXECUTORS
|
||||
executors:
|
||||
|
@ -389,6 +424,27 @@ jobs:
|
|||
steps:
|
||||
- android-build
|
||||
|
||||
android-build-e2e:
|
||||
<<: *defaults
|
||||
docker:
|
||||
- image: circleci/android:api-29-node
|
||||
environment:
|
||||
<<: *android-env
|
||||
<<: *bash-env
|
||||
steps:
|
||||
- android-build
|
||||
|
||||
android-e2e-test:
|
||||
<<: *defaults
|
||||
machine:
|
||||
image: android:202102-01
|
||||
resource_class: large
|
||||
environment:
|
||||
<<: *android-env
|
||||
<<: *bash-env
|
||||
steps:
|
||||
- android-e2e-test
|
||||
|
||||
android-internal-app-sharing-experimental:
|
||||
<<: *defaults
|
||||
docker:
|
||||
|
@ -519,3 +575,15 @@ workflows:
|
|||
- android-google-play-beta-official:
|
||||
requires:
|
||||
- android-hold-google-play-beta-official
|
||||
|
||||
# Aandroid E2E Testing
|
||||
- android-hold-e2e:
|
||||
type: approval
|
||||
requires:
|
||||
- lint-testunit
|
||||
- android-build-e2e:
|
||||
requires:
|
||||
- android-hold-e2e
|
||||
- android-e2e-test:
|
||||
requires:
|
||||
- android-build-e2e
|
||||
|
|
Loading…
Reference in New Issue