react-native-navigation的迁移库

12345678910111213141516171819202122232425262728293031
  1. const exec = require('shell-utils').exec;
  2. function runWithXcpretty(cmd) {
  3. if (exec.which(`xcpretty`)) {
  4. exec.execSync(`${cmd} | xcpretty && exit \${PIPESTATUS[0]}`);
  5. } else {
  6. exec.execSync(`${cmd}`);
  7. }
  8. }
  9. function run() {
  10. runWithXcpretty(`RCT_NO_LAUNCH_PACKAGER=true
  11. cd ./playground/ios && xcodebuild
  12. build build-for-testing
  13. -scheme "ReactNativeNavigation"
  14. -project playground.xcodeproj
  15. -sdk iphonesimulator
  16. -configuration Debug
  17. -derivedDataPath ./DerivedData/playground`);
  18. runWithXcpretty(`RCT_NO_LAUNCH_PACKAGER=true
  19. cd ./playground/ios && xcodebuild
  20. test-without-building
  21. -scheme "ReactNativeNavigation"
  22. -project playground.xcodeproj
  23. -sdk iphonesimulator
  24. -destination 'platform=iOS Simulator,name=iPhone 7'
  25. -derivedDataPath ./DerivedData/playground`);
  26. }
  27. run();