mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
* initial commit for 0.85.0-rc.7 * RN 0.85.2 update * CI pipeline for RN085.2 * config update * updated config * update for ios 0.84 * iOS on RN0.84 * RN084 update * pinned to RN085.2 * update for rn084 * cleanup
121 lines
3.6 KiB
JavaScript
121 lines
3.6 KiB
JavaScript
/** @type {Detox.DetoxConfig} */
|
|
const isCIRN085 = Boolean(process.env.CI) && /^0\.85(\.|$)/.test(process.env.REACT_NATIVE_VERSION || '');
|
|
const iosCIBuildSettings = isCIRN085
|
|
? " ARCHS=arm64 ONLY_ACTIVE_ARCH=YES IPHONEOS_DEPLOYMENT_TARGET=15.1 OTHER_LDFLAGS='$(inherited) -lc++'"
|
|
: '';
|
|
|
|
module.exports = {
|
|
logger: {
|
|
level: process.env.CI ? 'debug' : undefined,
|
|
},
|
|
testRunner: {
|
|
args: {
|
|
config: 'e2e/jest.config.js',
|
|
maxWorkers: process.env.CI ? 2 : undefined,
|
|
_: ['e2e']
|
|
},
|
|
},
|
|
artifacts: {
|
|
plugins: {
|
|
log: process.env.CI ? 'failing' : undefined,
|
|
screenshot: process.env.CI ? 'failing' : undefined,
|
|
},
|
|
},
|
|
apps: {
|
|
"ios.release": {
|
|
"type": "ios.app",
|
|
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/example.app",
|
|
"build": `export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/example.xcworkspace -UseNewBuildSystem=NO -scheme example -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet${iosCIBuildSettings}`,
|
|
},
|
|
"ios.debug": {
|
|
"type": "ios.app",
|
|
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/example.app",
|
|
"build": `xcodebuild -workspace ios/example.xcworkspace -UseNewBuildSystem=NO -scheme example -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build${iosCIBuildSettings}`,
|
|
"start": "scripts/start-rn.sh ios",
|
|
},
|
|
"android.debug": {
|
|
"type": "android.apk",
|
|
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
|
|
"build": "cd android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -",
|
|
"start": "scripts/start-rn.sh android",
|
|
reversePorts: [8081]
|
|
},
|
|
"android.release": {
|
|
"type": "android.apk",
|
|
"binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
|
|
"build": "cd android ; ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release ; cd -"
|
|
}
|
|
},
|
|
devices: {
|
|
simulator: {
|
|
type: "ios.simulator",
|
|
headless: Boolean(process.env.CI),
|
|
device: {
|
|
type: "iPhone 15 Pro Max",
|
|
os: "17.0.1"
|
|
}
|
|
},
|
|
emulator: {
|
|
type: "android.emulator",
|
|
headless: Boolean(process.env.CI),
|
|
gpuMode: process.env.CI ? 'off' : undefined,
|
|
device: {
|
|
avdName: "Pixel_3a_API_34"
|
|
},
|
|
reversePorts: [8081],
|
|
|
|
utilBinaryPaths: [
|
|
"../../detox/test/e2e/util-binary/detoxbutler-1.1.0-aosp-release.apk"
|
|
],
|
|
},
|
|
"genymotion.emulator.uuid": {
|
|
type: "android.genycloud",
|
|
device: {
|
|
recipeUUID: "9baf12f9-a645-4ffa-a688-0e92584d6194"
|
|
},
|
|
utilBinaryPaths: [
|
|
"../../detox/test/e2e/util-binary/detoxbutler-1.1.0-genymotion-release.apk"
|
|
],
|
|
},
|
|
"genymotion.emulator.name": {
|
|
type: "android.genycloud",
|
|
device: {
|
|
recipeName: "Detox_Pixel_3a_API_34"
|
|
},
|
|
utilBinaryPaths: [
|
|
"../../detox/test/e2e/util-binary/detoxbutler-1.1.0-genymotion-release.apk"
|
|
],
|
|
}
|
|
},
|
|
configurations: {
|
|
"ios.sim.release": {
|
|
"device": "simulator",
|
|
"app": "ios.release"
|
|
},
|
|
"ios.sim.debug": {
|
|
"device": "simulator",
|
|
"app": "ios.debug"
|
|
},
|
|
"ios.manual": {
|
|
"type": "ios.manual",
|
|
"behavior": {
|
|
"launchApp": "manual"
|
|
},
|
|
"artifacts": false,
|
|
"session": {
|
|
"autoStart": true,
|
|
"server": "ws://localhost:8099",
|
|
"sessionId": "com.wix.demo.react.native"
|
|
}
|
|
},
|
|
"android.emu.debug": {
|
|
"device": "emulator",
|
|
"app": "android.debug"
|
|
},
|
|
"android.emu.release": {
|
|
"device": "emulator",
|
|
"app": "android.release"
|
|
}
|
|
}
|
|
};
|