1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-18 10:50:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

feat: CI测试

This commit is contained in:
steven
2023-04-03 11:18:31 +08:00
parent 94c177512e
commit ffb2bf4afa
3 changed files with 14 additions and 3 deletions

View 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