react-native-navigation的迁移库

e2e.android.js 552B

12345678910111213141516171819202122
  1. const _ = require('lodash');
  2. const shellUtils = require('shell-utils');
  3. const fs = require('fs');
  4. const release = _.includes(process.argv, 'release');
  5. function e2e() { //eslint-disable-line
  6. try {
  7. shellUtils.exec.execSync(`echo 'travis_fold:start:android-espresso'`);
  8. shellUtils.exec.execSync(`cd android && ./gradlew --stop`);
  9. shellUtils.exec.execSync(`cd android && ./gradlew connectedDebugAndroidTest`);
  10. } finally {
  11. shellUtils.exec.execSync(`echo 'travis_fold:end:android-espresso'`);
  12. }
  13. }
  14. function run() {
  15. e2e();
  16. }
  17. run();