12345678910111213141516171819202122232425262728293031 |
- const _ = require('lodash');
- const shellUtils = require('shell-utils');
- const fs = require('fs');
-
- function runEmulator() {
-
-
-
-
- }
-
- function e2e() {
- shellUtils.exec.execSync(`yarn run uninstall-android`);
- shellUtils.exec.execSync(`yarn run android`);
- shellUtils.exec.execSync(`cd ../AndroidE2E/ && ./gradlew connectedDebugAndroidTest`);
- }
-
- function run() {
- if (process.env.CI) {
- return;
- }
- shellUtils.exec.execSync(`echo 'travis_fold:start:android-e2e'`);
- try {
- e2e();
- } finally {
- shellUtils.exec.execSync(`echo 'travis_fold:end:android-e2e'`);
- }
- }
-
- run();
|