react-native-navigation的迁移库

test.android.js 310B

12345678910111213141516
  1. const exec = require('shell-utils').exec;
  2. function run() {
  3. if (process.env.CI) {
  4. exec.execSync(`./scripts/installAndroidSDK.sh`);
  5. }
  6. exec.execSync(`cd android && ./gradlew clean testDebugUnitTest`);
  7. if (!process.env.CI) {
  8. exec.execSync(`cd playground && yarn run e2e-android`);
  9. }
  10. }
  11. run();