react-native-navigation的迁移库

test.unit.ios.js 999B

123456789101112131415161718192021222324252627282930
  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(`RCT_NO_LAUNCH_PACKAGER=true
  7. cd ./playground/ios && xcodebuild
  8. build build-for-testing
  9. -scheme "ReactNativeNavigation"
  10. -project playground.xcodeproj
  11. -sdk iphonesimulator
  12. -configuration ${conf}
  13. -derivedDataPath ./DerivedData/playground
  14. ONLY_ACTIVE_ARCH=YES`);
  15. exec.execSync(`RCT_NO_LAUNCH_PACKAGER=true
  16. cd ./playground/ios && xcodebuild
  17. test-without-building
  18. -scheme "ReactNativeNavigation"
  19. -project playground.xcodeproj
  20. -sdk iphonesimulator
  21. -configuration ${conf}
  22. -destination 'platform=iOS Simulator,name=iPhone 7'
  23. -derivedDataPath ./DerivedData/playground
  24. ONLY_ACTIVE_ARCH=YES`);
  25. }
  26. run();