mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
38 lines
796 B
Bash
Executable File
38 lines
796 B
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 "npm run integration"
|
|
popd
|
|
|
|
### Android native unit tests
|
|
pushd detox/android
|
|
run_f "npm run unit:android-release"
|
|
popd
|
|
|
|
mkdir -p coverage
|
|
|
|
### E2E self-tests
|
|
pushd detox/test
|
|
|
|
run_f "npm run build:android"
|
|
|
|
run_f "npm run e2e:android:genycloud"
|
|
cp coverage/lcov.info ../../coverage/e2e-genycloud-ci.lcov
|
|
|
|
run_f "npm run e2e:android -- e2e/01* e2e/02* e2e/03.actions*"
|
|
cp coverage/lcov.info ../../coverage/e2e-emulator-ci.lcov
|
|
|
|
run_f "scripts/ci_unhappy.sh android"
|
|
|
|
# run_f "npm run verify-artifacts:android"
|
|
popd
|