mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
* iOS * Android * update * RN -0.84 android * update for android * test update for hardcoded height - from 412 to 394 * revert test update * all tests were running on latest RN instead of the right onw * yarn change * pod install update to run only once * patch for codegen for Android webview * some minor changes in regex and iOS install script * regex update * test update for android * another test update for android * very flaky test removed * removal of rules * reverted the removed test * API 36 fix for button test * safety added to BridgeIdlingResource.kt
43 lines
1.1 KiB
Bash
Executable File
43 lines
1.1 KiB
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
UPLOAD_ARTIFACT="$(pwd)/scripts/upload_artifact.sh"
|
|
trap "$UPLOAD_ARTIFACT" EXIT
|
|
|
|
### Approve unapproved SDK licenses
|
|
yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
|
|
|
|
source $(dirname "$0")/ci.sh
|
|
|
|
### JS integration tests
|
|
pushd detox/test
|
|
run_f "yarn integration"
|
|
popd
|
|
|
|
### Android native unit tests
|
|
pushd detox/android
|
|
run_f "yarn unit:android-release"
|
|
popd
|
|
|
|
mkdir -p coverage
|
|
|
|
### E2E self-tests
|
|
pushd detox/test
|
|
|
|
run_f "node scripts/patch-webview-codegen.js"
|
|
run_f "yarn build:android-debug" # Workaround for asyncstorage issue https://github.com/react-native-async-storage/async-storage/issues/1216. Can be removed after fixing it
|
|
run_f "yarn build:android"
|
|
|
|
run_f "yarn e2e:android"
|
|
cp coverage/lcov.info ../../coverage/e2e-emulator-ci.lcov
|
|
|
|
if [ "$TEST_GENYCLOUD_SANITY" = "true" ]; then
|
|
# Sanity-test support for genycloud (though not ARM)
|
|
run_f "yarn e2e:android:genycloud e2e/01* e2e/02* e2e/03.actions*"
|
|
cp coverage/lcov.info ../../coverage/e2e-genycloud-ci.lcov
|
|
fi
|
|
|
|
run_f "scripts/ci_unhappy.sh android"
|
|
|
|
# run_f "yarn verify-artifacts:android"
|
|
popd
|