mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 10:31:39 +08:00
feat: CI测试
This commit is contained in:
@@ -20,7 +20,8 @@ module.exports = {
|
||||
'ios.debug': {
|
||||
type: 'ios.app',
|
||||
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/AwesomeProject.app',
|
||||
"build": "xcodebuild -workspace ios/AwesomeProject.xcworkspace -UseNewBuildSystem=NO -scheme AwesomeProject -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
|
||||
build: "xcodebuild -workspace ios/AwesomeProject.xcworkspace -UseNewBuildSystem=NO -scheme AwesomeProject -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
|
||||
start: "scripts/start-rn.sh ios",
|
||||
},
|
||||
'ios.release': {
|
||||
type: 'ios.app',
|
||||
|
10
Example/testHotUpdate/scripts/start-rn.sh
Executable file
10
Example/testHotUpdate/scripts/start-rn.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
trap 'kill $RN_PID' EXIT
|
||||
|
||||
PLATFORM=$1
|
||||
|
||||
kill -9 $(lsof -i :8081 | awk '{print $2}' | tail -n +2) & npm start &
|
||||
RN_PID=$!
|
||||
sleep 2 && curl>/dev/null http://localhost:8081/index.bundle
|
||||
wait $RN_PID
|
Reference in New Issue
Block a user