Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion scripts/ci.android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,25 @@ pushd detox/android
run_f "./gradlew test"
popd

mkdir -p coverage

pushd detox/test

# Workaround until react android issue will be fixed - react-native: 0.55
mv node_modules/react-native/ReactAndroid/release.gradle node_modules/react-native/ReactAndroid/release.gradle.bak
cp extras/release.gradle node_modules/react-native/ReactAndroid/

run_f "npm run build:android"
cp ../coverage/lcov.info ../../coverage/unit.lcov

run_f "npm run e2e:android-ci"
cp coverage/lcov.info ../../coverage/e2e-android-ci.lcov

run_f "npm run e2e:android-timeout-ci"
cp coverage/lcov.info ../../coverage/e2e-android-timeout-ci.lcov

run_f "npm run e2e:jest-circus-timeout:android"
cp coverage/lcov.info ../../coverage/e2e-jest-circus-timeout-android.lcov

cp coverage/lcov.info coverage/e2e.lcov
# run_f "npm run verify-artifacts:android"
popd
11 changes: 10 additions & 1 deletion scripts/ci.ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@ source $(dirname "$0")/ci.sh

run_f "$(dirname "$0")/unit.ios.sh"

mkdir -p coverage

pushd detox/test

run_f "npm run build:ios"
cp ../coverage/lcov.info ../../coverage/unit.lcov

run_f "npm run e2e:ios-ci"
cp coverage/lcov.info ../../coverage/e2e-ios-ci.lcov

run_f "npm run e2e:ios-timeout-ci"
cp coverage/lcov.info ../../coverage/e2e-ios-timeout-ci.lcov

run_f "npm run e2e:jest-circus-timeout:ios"
cp coverage/lcov.info ../../coverage/e2e-jest-circus-timeout-ios.lcov

cp coverage/lcov.info coverage/e2e.lcov
# run_f "npm run verify-artifacts:ios"
popd