react-native-navigation的迁移库

test.unit.ios.js 1.0KB

123456789101112131415161718192021222324252627282930313233
  1. const _ = require('lodash');
  2. const exec = require('shell-utils').exec;
  3. const release = _.includes(process.argv, '--release');
  4. function run() {
  5. const conf = release ? `Release` : `Debug`;
  6. exec.execSync(`cd ./playground/ios &&
  7. RCT_NO_LAUNCH_PACKAGER=true
  8. xcodebuild build build-for-testing
  9. -scheme "ReactNativeNavigation"
  10. -project playground.xcodeproj
  11. -sdk iphonesimulator
  12. -configuration ${conf}
  13. -derivedDataPath ./DerivedData/playground
  14. -quiet
  15. ONLY_ACTIVE_ARCH=YES`);
  16. exec.execSync(`cd ./playground/ios &&
  17. RCT_NO_LAUNCH_PACKAGER=true
  18. xcodebuild test-without-building
  19. -scheme "ReactNativeNavigation"
  20. -project playground.xcodeproj
  21. -sdk iphonesimulator
  22. -configuration ${conf}
  23. -destination 'platform=iOS Simulator,name=iPhone X'
  24. -derivedDataPath ./DerivedData/playground
  25. ONLY_ACTIVE_ARCH=YES`);
  26. }
  27. run();